-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
clang: fix crosscompilation for 16.x #238597
Conversation
@ofborg build pkgsCross.aarch64-multiplatform.clang16 |
@ofborg build pkgsCross.aarch64-multiplatform.clang_16 |
fix ofborg mention, to match proper attribute |
Thank you! |
Ah, thanks; looks like we forgot to apply #226551 to Would you mind copying the |
@rrbutani you about this snippet?
In my setup it not failed, but I can add this fragment, if you feel it important. |
Can confirm, that all rebuild successfully exactly on this commit:
|
@avnik I meant this bit (to be changed here): -] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
+] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ It's not a big deal (cross comp will work without it; this just lets us skip an extra LLVM build in cases where the build platform can execute host platform binaries — i.e. x86_64 and i386), I mostly just wanted to keep the LLVM package sets in sync. |
dc5fde1
to
cef1efe
Compare
@rrbutani all done |
@rrbutani Should I also PR this for stable branch? |
Successfully created backport PR for |
members can add labels |
Seems like |
https://github.com/NixOS/nixpkgs/pull/226551/files#r1300386564 |
Description of changes
Fix cross-compilation issue for clang 16.x (port existing fix from 15.x branch)
Closing #238432
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)