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
[staging] python3: Fix clang / llvm build with optimizations #103715
Conversation
c6c38f2
to
44aa3df
Compare
96feeb9
to
17dbe02
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.
diff LGTM
I marked this as stale due to inactivity. → More info |
I rebased this against latest staging again. |
Motivation for this change
When building python3 with clang, the build errors out because optimizations are enabled (disabled by default on Darwin for I assume the very same reason) because python requires
llvm-profdata
to be available to build in that case.I am not sure if the way I figure out how to choose the matching version of
llvm
to theclang
version provided by thestdenv
is ideal. Please feel free to suggest a better approach.@NixOS/darwin-maintainers maybe you could verify if this also applies to Darwin builds? Then we can get rid of the
enableOptimizations
flag I think.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)