Merge pull request #320282 from pwaller/fix-maybe-uninitialized
llvmPackages.clang: don't pass -Wno-maybe-uninitialized to clang
This commit is contained in:
@@ -198,7 +198,7 @@ let
|
||||
'';
|
||||
})
|
||||
// (lib.optionalAttrs (lib.versionAtLeast release_version "15") {
|
||||
env = lib.optionalAttrs (stdenv.buildPlatform != stdenv.hostPlatform) {
|
||||
env = lib.optionalAttrs (stdenv.buildPlatform != stdenv.hostPlatform && !stdenv.hostPlatform.useLLVM) {
|
||||
# The following warning is triggered with (at least) gcc >=
|
||||
# 12, but appears to occur only for cross compiles.
|
||||
NIX_CFLAGS_COMPILE = "-Wno-maybe-uninitialized";
|
||||
|
||||
Reference in New Issue
Block a user