python311Packages.pytorch: mark some flags as gcc-only

This commit is contained in:
Weijia Wang 2023-11-17 16:45:11 +01:00
parent 534cc954e5
commit e3d4beac9d

View File

@ -304,12 +304,13 @@ in buildPythonPackage rec {
"-Wno-pass-failed" "-Wno-pass-failed"
] ++ [ ] ++ [
"-Wno-unused-command-line-argument" "-Wno-unused-command-line-argument"
"-Wno-maybe-uninitialized"
"-Wno-uninitialized" "-Wno-uninitialized"
"-Wno-array-bounds" "-Wno-array-bounds"
"-Wno-stringop-overflow"
"-Wno-free-nonheap-object" "-Wno-free-nonheap-object"
"-Wno-unused-result" "-Wno-unused-result"
] ++ lib.optionals stdenv.cc.isGNU [
"-Wno-maybe-uninitialized"
"-Wno-stringop-overflow"
])); ]));
nativeBuildInputs = [ nativeBuildInputs = [