Skip to content

Commit d361bb4

Browse files
authored
onnxruntime: fix build on darwin (#373145)
2 parents e913c73 + 816ec37 commit d361bb4

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

pkgs/development/libraries/onnxruntime/default.nix

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,7 @@ effectiveStdenv.mkDerivation rec {
218218
];
219219

220220
env = lib.optionalAttrs effectiveStdenv.cc.isClang {
221-
NIX_CFLAGS_COMPILE = toString [
222-
"-Wno-error=deprecated-declarations"
223-
"-Wno-error=deprecated-pragma"
224-
"-Wno-error=unused-but-set-variable"
225-
];
221+
NIX_CFLAGS_COMPILE = "-Wno-error";
226222
};
227223

228224
# aarch64-linux fails cpuinfo test, because /sys/devices/system/cpu/ does not exist in the sandbox
@@ -275,9 +271,5 @@ effectiveStdenv.mkDerivation rec {
275271
platforms = platforms.unix;
276272
license = licenses.mit;
277273
maintainers = with maintainers; [ puffnfresh ck3d cbourjau ];
278-
badPlatforms = [
279-
# error: implicit capture of 'this' with a capture default of '=' is deprecated [-Werror,-Wdeprecated-this-capture]
280-
lib.systems.inspect.patterns.isDarwin
281-
];
282274
};
283275
}

0 commit comments

Comments
 (0)