···3536 propagatedBuildInputs = [ ncurses zlib ];
37000038 # 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
···3536 propagatedBuildInputs = [ ncurses zlib ];
3738+ # 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