lol

Merge pull request #264405 from wegank/torch-clang-16

python311Packages.torch: fix build with clang 16

authored by

Weijia Wang and committed by
GitHub
6ccab17f 81270bbd

+5
+5
pkgs/development/python-modules/torch/default.nix
··· 274 274 # ... called on pointer ‘<unknown>’ with nonzero offset [1, 9223372036854775800] [-Werror=free-nonheap-object] 275 275 ++ lib.optionals (stdenv.cc.isGNU && lib.versions.major stdenv.cc.version == "12" ) [ 276 276 "-Wno-error=free-nonheap-object" 277 + ] 278 + # .../source/torch/csrc/autograd/generated/python_functions_0.cpp:85:3: 279 + # error: cast from ... to ... converts to incompatible function type [-Werror,-Wcast-function-type-strict] 280 + ++ lib.optionals (stdenv.cc.isClang && lib.versionAtLeast stdenv.cc.version "16") [ 281 + "-Wno-error=cast-function-type-strict" 277 282 ])); 278 283 279 284 nativeBuildInputs = [