-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fix build on aarch64-darwin #1789
Conversation
This is looking good to me on x86_64-linux 👍 Does this fix the flake install for you, or just |
Not quite... but it's so close! So far only fixes the
|
There are a few methods as mentioned in the docs, including adding it to the configuration for a specific target here https://doc.rust-lang.org/cargo/reference/config.html#configuration-format. Another option is setting that as an environment variable, which seems less "pure" in the nix sense. What do you think? |
I would probably experiment with an environment variable (you should be able to set one within |
Can we still enable |
Yes, I can definitely add that back. I didn't know the reason behind adding it, but that makes sense to continue doing that while it's required for LLD. Reference: flamegraph-rs/flamegraph#157. I'll try to find time to wrap this up this week. |
I found that telling nix-cargo-integration to use |
|
Hmm I see the same when doing |
I can build this branch on the latest |
@yusdacra thanks for checking that! I guess that means we should get this merged. I'm on vacation right now and away from my computer, so I can't get to this until next week. I gave you access to my fork in case you'd rather do that sooner. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This branch builds for me (x86_64-linux) and when rebased on master. Let's merge as-is since it's a nice bump of the dependencies and the changes aren't scary.
Could you give this a try on your M1 machine @jdahm? No rush of course, please enjoy your vacation 😀
Thanks for your help here and in nix-cargo-integration @yusdacra! |
Removes
-Clink-arg=-Wl,--no-rosegment
and adds-mno-outline-atomics
and stackprotector on Darwin and aarch64.To do:
-Wl,--no-rosegment
on non-aarch64 arches.