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

Revert to 'ld' linker name for darwin targets #1781

Closed
wants to merge 1 commit into from

Conversation

timsutton
Copy link

👋 I help maintain homebrew-core, and noticed this was no longer building successfully on darwin:

$ cargo install --path=crates/bin

  = note: clang: error: invalid linker name in argument '-fuse-ld=lld'

I reverted it to the standard ld linker that ships with Apple's CLI tools / Xcode. Hope this helps!

@@ -9,8 +9,8 @@ rustflags = ["-C", "link-arg=-fuse-ld=lld"]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]

[target.x86_64-apple-darwin]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should have add the flags in justfile instead.

can you instead remove these target overrides?

@NobodyXu NobodyXu mentioned this pull request Jun 18, 2024
@NobodyXu
Copy link
Member

hello @timsutton I've merged in #1782 which removed .cargo/config.toml, will cut a release soon

@NobodyXu NobodyXu closed this Jun 18, 2024
@timsutton
Copy link
Author

Sounds good, thanks for the quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants