Repository navigation
Fix build with llvm 22 for several packages - #494634
Conversation
e3dcd7e to
1cf9211
Compare
Review dismissed automatically
| "-Wno-error=incompatible-pointer-types" | ||
| + lib.optionalString stdenv.hostPlatform.isi686 "-msse2 -mfpmath=sse"; |
There was a problem hiding this comment.
Wouldn't this cause the string to be -Wno-error=incompatible-pointer-types-msse2 -mfpmath=sse (without the space between -types and -msse2?
| "-Wno-error=c2y-extensions" | ||
| + lib.optionalString stdenv.cc.isClang "-Wno-c++17-attribute-extensions"; |
There was a problem hiding this comment.
Same as the fontforge one
There was a problem hiding this comment.
Oh well spotted. As you say
$ nix-shell -A gbenchmark --run 'echo $NIX_CFLAGS_COMPILE'
-Wno-error=c2y-extensions-Wno-c++17-attribute-extensions -frandom-seed=9x5r6wm37q ...It somehow still worked, or at least the first of the two -Wno was active?
I converted everything to use lib.join " ".
e6e1b34 to
c840141
Compare
alyssais
left a comment
There was a problem hiding this comment.
Looks fine for what it is. I do worry about the long term impact of adding flag overrides that never get cleaned up as opposed to patches fixing the issue that will get noticed and removed on updates, though…
Fair point. I don't mind having a go at that, but it might take a while |
Merging to unblock the bump, will circle back on the patches |
|
Will break the |
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.