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
llvm-stdenv: fix default stdlib #28870
Conversation
@LnL7, thanks for your PR! By analyzing the history of the files in this pull request, we identified @Ericson2314, @edolstra and @abbradar to be potential reviewers. |
99463b2
to
3005a7e
Compare
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.
I think https://github.com/NixOS/nixpkgs/pull/28870/files#diff-ae6d7fc8f1059168bd391972ef177c31R43 will unfortunately ensure that's defined no matter what. We'll have to special case that var taking it out of the loop.
It works fine,
|
@Ericson2314 just finished both |
Oh my bad, I thought the export line used the salted variable. I see how it works now, but unfortunately I don't think this will work in the cross case, where that variable won't be inspected if the "host role" is not in use. For that reason we do need to stuff it directly into the salted var, but only if none of the activities input roll-based ones are defined. |
Yeah, I thought so. Would doing the same for the build/target variants (role infix) work? |
@LnL7 I suppose, though the flags will be repeated when more the cc-wrapper takes on multiple roles. I think going straight to defining the salted var like I described is cleanest for now---I'll just look forward to the day when we can remove all |
3005a7e
to
c4ba45b
Compare
c4ba45b
to
b8984b3
Compare
b8984b3
to
69e8dec
Compare
Motivation for this change
Fixes #28223
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)