git.iko.soy/typeable/nixpkgs
on master help sign in
llvmPackages_8: disable sanitizers/etc w/musl

Patch needs porting and was uncertain anyway.

commit8d378eb822239dfb3818d5d9f5c80349ab01135c authorWill Dietz <w@wdtz.org> dateWed 20 Mar 2019, 13:12 (8 years ago) parent8fa5d4a
1 file changed+7−2
pkgs/development/compilers/llvm/8/compiler-rt.nix+7−2
pkgs/development/compilers/llvm/8/compiler-rt.nix+7−2
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
1111 "-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON"
1212 "-DCMAKE_C_COMPILER_TARGET=${stdenv.hostPlatform.config}"
1313 "-DCMAKE_ASM_COMPILER_TARGET=${stdenv.hostPlatform.config}"
14− ] ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) [
14+ ] ++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
1515 "-DCMAKE_C_FLAGS=-nodefaultlibs"
1616 "-DCMAKE_CXX_COMPILER_WORKS=ON"
1717 "-DCOMPILER_RT_BUILD_SANITIZERS=OFF"
@@ -20,13 +20,18 @@ stdenv.mkDerivation rec {
2020 "-DCOMPILER_RT_BUILD_PROFILE=OFF"
2121 "-DCOMPILER_RT_BAREMETAL_BUILD=ON"
2222 "-DCMAKE_SIZEOF_VOID_P=${toString (stdenv.hostPlatform.parsed.cpu.bits / 8)}"
23+ ] ++ stdenv.lib.optionals stdenv.hostPlatform.isMusl [
24+ "-DCOMPILER_RT_BUILD_SANITIZERS=OFF"
25+ "-DCOMPILER_RT_BUILD_XRAY=OFF"
26+ "-DCOMPILER_RT_BUILD_LIBFUZZER=OFF"
27+ "-DCOMPILER_RT_BUILD_PROFILE=OFF"
2328 ];
2429
2530 outputs = [ "out" "dev" ];
2631
2732 patches = [
2833 ./compiler-rt-codesign.patch # Revert compiler-rt commit that makes codesign mandatory
29− ] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl ./sanitizers-nongnu.patch
34+ ]# ++ stdenv.lib.optional stdenv.hostPlatform.isMusl ./sanitizers-nongnu.patch
3035 ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) ./crtbegin-and-end.patch
3136 ++ stdenv.lib.optional stdenv.hostPlatform.isDarwin ./compiler-rt-clock_gettime.patch;
3237