Skip to content

Commit e3d4bea

Browse files
committed
python311Packages.pytorch: mark some flags as gcc-only
1 parent 534cc95 commit e3d4bea

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pkgs/development/python-modules/torch/default.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,13 @@ in buildPythonPackage rec {
304304
"-Wno-pass-failed"
305305
] ++ [
306306
"-Wno-unused-command-line-argument"
307-
"-Wno-maybe-uninitialized"
308307
"-Wno-uninitialized"
309308
"-Wno-array-bounds"
310-
"-Wno-stringop-overflow"
311309
"-Wno-free-nonheap-object"
312310
"-Wno-unused-result"
311+
] ++ lib.optionals stdenv.cc.isGNU [
312+
"-Wno-maybe-uninitialized"
313+
"-Wno-stringop-overflow"
313314
]));
314315

315316
nativeBuildInputs = [

0 commit comments

Comments
 (0)