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
libcxxabi: use cmake as native build input #41900
Conversation
Success on x86_64-darwin (full log) Attempted: llvm Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: llvm Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: llvm Partial log (click to expand)
|
@@ -54,7 +55,7 @@ let | |||
|
|||
libcxx = callPackage ./libc++ {}; | |||
|
|||
libcxxabi = callPackage ./libc++abi.nix {}; | |||
libcxxabi = callPackage ./libc++abi.nix { cmake = buildPackages.cmake; }; |
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.
Do we want to do this for all versions?
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.
Actually it wouldn't hurt. I think this is the only place where it's used in cross bootstrapping though.
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.
Yeah I think it should be done anywhere that callPackage is being overriden like this.
/cc @Ericson2314
562b466
to
f882e2d
Compare
Success on aarch64-linux (full log) Attempted: llvm Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: llvm Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: llvm Partial log (click to expand)
|
Actually this might be introducing its own issue:
I can't figure out why cmake can't be found. Is the buildPackages affecting it? |
f882e2d
to
fd4dbed
Compare
Actually I was able to just use nativeBuildInputs for cmake. @Ericson2314 does this look okay to you? I'll let you decide to merge it. |
@@ -5,7 +5,7 @@ stdenv.mkDerivation { | |||
|
|||
src = fetch "libcxxabi" "1qi9q06zanqm8awzq83810avmvi52air6gr9zfip8mbg5viqn3cj"; | |||
|
|||
buildInputs = [ cmake ] ++ stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind; | |||
nativeBuildInputs = [ cmake ] ++ stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind; |
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.
Please leave libunwind
in the buildInputs
.
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.
ok
fd4dbed
to
1cb1b91
Compare
If it works now feel free to merge: it looks correct. |
Ok awesome! It may need to also go in a few other places in LLVM though. |
Success on x86_64-linux (full log) Attempted: llvm Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: llvm Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: llvm Partial log (click to expand)
|
Yeah this looks great. Lets do it in for all other versions too. (Can do staging-requring ones after cause nice to get stuff to master.) |
Splicing is broken here in libcxxabi:
Need to specify cmake correctly for things to work.