Merge pull request #265967 from reckenrode/llvm-fix

llvmPackages_10.llvm: fix build with clang 16

authored by Weijia Wang and committed by GitHub 7eb07191 11361133

+11 -1
+11 -1
pkgs/development/compilers/llvm/10/llvm/default.nix
··· 133 hash = "sha256-CXwYxQezTq5vdmc8Yn88BUAEly6YZ5VEIA6X3y5NNOs="; 134 stripLen = 1; 135 }) 136 - ] ++ lib.optional enablePolly ./gnu-install-dirs-polly.patch; 137 138 postPatch = optionalString stdenv.isDarwin '' 139 substituteInPlace cmake/modules/AddLLVM.cmake \
··· 133 hash = "sha256-CXwYxQezTq5vdmc8Yn88BUAEly6YZ5VEIA6X3y5NNOs="; 134 stripLen = 1; 135 }) 136 + ] ++ lib.optionals enablePolly [ 137 + ./gnu-install-dirs-polly.patch 138 + # Add missing isl header includess required to build LLVM 10 + Polly with clang 16. 139 + (fetchpatch { 140 + name = "polly-ppcg-isl-headers.patch"; 141 + url = "https://repo.or.cz/ppcg.git/patch/098ba285306114dc71497f7b51c357f69c9b4472"; 142 + hash = "sha256-c9L30rDROYAMbUSuaK9U/ixyFMlH/Sa1n+VgLODzSCQ="; 143 + extraPrefix = "tools/polly/lib/External/ppcg/"; 144 + stripLen = 1; 145 + }) 146 + ]; 147 148 postPatch = optionalString stdenv.isDarwin '' 149 substituteInPlace cmake/modules/AddLLVM.cmake \