llvmPackages.libcxx: use hasSharedLibraries instead of isStatic#362848
Conversation
|
Huh — what's the difference between isStatic and hasSharedLibraries? When would one be true but not the other? |
|
@alyssais see this comment: nixpkgs/lib/systems/default.nix Lines 196 to 203 in a435bac |
|
Ah, I see! So really we should basically always be checking hasSharedLibraries instead of isStatic? |
Not sure in what other cases it needs to be checked, but yes, I believe hasSharedLibraries should often be more correct. |
|
Lots of packages check it to e.g. tell CMake not to try to build shared libraries. |
|
I think a rebase would fix OfBorg. |
5a52d92 to
cefa795
Compare
|
This can go to master — it doesn't really rebuild anything. |
cefa795 to
d2b4629
Compare
alyssais
left a comment
There was a problem hiding this comment.
Would welcome PRs to update more isStatic checks to hasSharedLibraries. :)
Split from #352629, as this should be a relatively uncontroversial bugfix that also makes sense on its own.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.