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. |
the-mikedavis
left a comment
There was a problem hiding this comment.
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-rosegmentand adds-mno-outline-atomicsand stackprotector on Darwin and aarch64.To do:
-Wl,--no-rosegmenton non-aarch64 arches.