llvmPackages_11.compiler-rt: fix build on x86_64-darwin#123524
llvmPackages_11.compiler-rt: fix build on x86_64-darwin#123524jonringer merged 1 commit intoNixOS:staging-nextfrom
Conversation
82a616d to
bf23bf6
Compare
There was a problem hiding this comment.
I think we can just do this! Everything else I think we just beating around the bush.
| ] ++ lib.optionals (useLLVM || bareMetal || isMusl || | |
| (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64)) [ | |
| ] ++ lib.optionals (!haveLibc || baremetal || isMusl /* || isNewDarwinBootstrap */) [ |
I don't know why it doesn't build for aarch64-darwin though.
Well it doesn't build for musl either so we could just chalk it up to these being brittle or something.
There was a problem hiding this comment.
Sorry I edited this a few times, I'll think about it and do another.
There was a problem hiding this comment.
Won’t this disable the sanitizers on some platforms where they work, notably x86_64-darwin?
There was a problem hiding this comment.
I think after all my second-guessing and editing -- no :).
There was a problem hiding this comment.
Is that comment around isNewDarwinBootstrap intentional?
There was a problem hiding this comment.
| ] ++ lib.optionals ((useLLVM || bareMetal) && !haveLibc) [ | |
| ] ++ lib.optionals (!haveLibc || bareMetal) [ |
There was a problem hiding this comment.
| ] ++ lib.optionals (useLLVM && !haveLibc) [ | |
| ] ++ lib.optionals (!haveLibc) [ |
@s1341 I think this will still be fine for android? No reason not to link bionic right?
There was a problem hiding this comment.
aarch64-android is using llvm 12 anyway, but I imagine you'll port this change to 12 too.
Amendment to changes in 56fcbcd. Co-authored-by: John Ericson <[email protected]>
bf23bf6 to
2794eda
Compare
|
@GrahamcOfBorg build llvmPackages_11.compiler-rt |
Amendment to changes in 56fcbcd.
Motivation for this change
llvmPackages_11.compiler-rt is broken on staging-next, see Hydra.
The diff is slightly more confusing than it could be, since it's an amendment to an earlier commit. To see the logical diff use:
Tested up to llvmPackages_11.libcxx for both x86_64-darwin native and x86_64-darwin->aarch64-darwin cross. I'm building aarch64-darwin native, but it will take a few hours to test and I want to unblock staging-next.
I'm not as confident as I would like to be about the state of llvm bootstrapping on darwin, but at least this contains the interesting logic to aarch64-darwin.
cc @Ericson2314 @NixOS/release-engineers
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)