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

error: unsupported linker arg: -x #21429

Closed
cinemast opened this issue Sep 15, 2024 · 2 comments
Closed

error: unsupported linker arg: -x #21429

cinemast opened this issue Sep 15, 2024 · 2 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

@cinemast
Copy link
Contributor

Zig Version

0.13.0

Steps to Reproduce and Observed Behavior

Cross compiling a CGO application from Windows to Mac OSX arm64

Expected Behavior

Cross compilation works

@cinemast cinemast added the bug Observed behavior contradicts documented or intended behavior label Sep 15, 2024
@alexrp
Copy link
Member

alexrp commented Sep 17, 2024

There is not enough information to go on here. I can guess from man ld that this might be referring to the short form of --discard-all, but without seeing the full zig cc invocation, it really is just a guess.

@alexrp alexrp added enhancement Solving this issue will likely involve adding new logic or components to the codebase. zig cc Zig as a drop-in C compiler feature linking and removed bug Observed behavior contradicts documented or intended behavior labels Oct 9, 2024
@alexrp alexrp added this to the unplanned milestone Oct 9, 2024
@mark-rushakoff
Copy link

Maybe close this in favor of #21721?

@alexrp alexrp closed this as not planned Won't fix, can't repro, duplicate, stale Oct 20, 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

3 participants