llvm-3.8: Fix segfault in llc

+5 -1
+5 -1
pkgs/development/compilers/llvm/3.8/llvm.nix
··· 35 35 36 36 propagatedBuildInputs = [ ncurses zlib ]; 37 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 + 38 42 # hacky fix: New LLVM releases require a newer OS X SDK than 39 43 # 10.9. This is a temporary measure until nixpkgs darwin support is 40 44 # updated. 41 - patchPhase = stdenv.lib.optionalString stdenv.isDarwin '' 45 + postPatch = stdenv.lib.optionalString stdenv.isDarwin '' 42 46 sed -i 's/os_trace(\(.*\)");$/printf(\1\\n");/g' ./projects/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc 43 47 ''; 44 48