llvm-3.8: Fix segfault in llc

+5 -1
+5 -1
pkgs/development/compilers/llvm/3.8/llvm.nix
··· 35 36 propagatedBuildInputs = [ ncurses zlib ]; 37 38 # hacky fix: New LLVM releases require a newer OS X SDK than 39 # 10.9. This is a temporary measure until nixpkgs darwin support is 40 # updated. 41 - patchPhase = stdenv.lib.optionalString stdenv.isDarwin '' 42 sed -i 's/os_trace(\(.*\)");$/printf(\1\\n");/g' ./projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc 43 ''; 44
··· 35 36 propagatedBuildInputs = [ ncurses zlib ]; 37 38 + # Fix a segfault in llc 39 + # See http://lists.llvm.org/pipermail/llvm-dev/2016-October/106500.html 40 + patches = [ ./D17533-1.patch ]; 41 + 42 # hacky fix: New LLVM releases require a newer OS X SDK than 43 # 10.9. This is a temporary measure until nixpkgs darwin support is 44 # updated. 45 + postPatch = stdenv.lib.optionalString stdenv.isDarwin '' 46 sed -i 's/os_trace(\(.*\)");$/printf(\1\\n");/g' ./projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc 47 ''; 48