Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unsupported linker arg: --allow-multiple-definition #21455

Open
kassane opened this issue Sep 19, 2024 · 0 comments
Open

unsupported linker arg: --allow-multiple-definition #21455

kassane opened this issue Sep 19, 2024 · 0 comments
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase. linking zig cc Zig as a drop-in C compiler feature
Milestone

Comments

@kassane
Copy link
Contributor

kassane commented Sep 19, 2024

Zig Version

0.13.0

Steps to Reproduce and Observed Behavior

error: unsupported linker arg: --allow-multiple-definition

Compiler returned: 1

How to Reproduce?

URL: https://c.godbolt.org/z/rz1GjvYMY

Add on zig cc/zig c++ -Wl,--allow-multiple-definition.

Note: zig ld.lld --help | grep allow, list this flag!

Expected Behavior

Works, similar to clang/gcc.

@alexrp alexrp added zig cc Zig as a drop-in C compiler feature enhancement Solving this issue will likely involve adding new logic or components to the codebase. linking labels Oct 9, 2024
@alexrp alexrp added this to the unplanned milestone Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase. linking zig cc Zig as a drop-in C compiler feature
Projects
None yet
Development

No branches or pull requests

2 participants