File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
pkgs/development/compilers/llvm/common/compiler-rt Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 3939 haveLibcxx = stdenv . cc . libcxx != null ;
4040 isDarwinStatic = stdenv . hostPlatform . isDarwin && stdenv . hostPlatform . isStatic && lib . versionAtLeast release_version "16" ;
4141 inherit ( stdenv . hostPlatform ) isMusl isAarch64 ;
42+ noSanitizers = ! haveLibc || bareMetal || isMusl || isDarwinStatic ;
4243
4344 baseName = "compiler-rt" ;
4445 pname = baseName + lib . optionalString ( haveLibc ) "-libc" ;
@@ -94,7 +95,7 @@ stdenv.mkDerivation ({
9495 "-DCOMPILER_RT_BUILD_LIBFUZZER=OFF"
9596 ] ++ lib . optionals ( useLLVM && haveLibc ) [
9697 "-DCOMPILER_RT_BUILD_SANITIZERS=ON"
97- ] ++ lib . optionals ( ! haveLibc || bareMetal || isMusl || isDarwinStatic ) [
98+ ] ++ lib . optionals ( noSanitizers ) [
9899 "-DCOMPILER_RT_BUILD_SANITIZERS=OFF"
99100 ] ++ lib . optionals ( ( useLLVM && ! haveLibcxx ) || ! haveLibc || bareMetal || isMusl || isDarwinStatic ) [
100101 "-DCOMPILER_RT_BUILD_XRAY=OFF"
@@ -131,6 +132,8 @@ stdenv.mkDerivation ({
131132 "-DCOMPILER_RT_ENABLE_IOS=OFF"
132133 ] ) ++ lib . optionals ( lib . versionAtLeast version "19" && stdenv . isDarwin && lib . versionOlder stdenv . hostPlatform . darwinMinVersion "10.13" ) [
133134 "-DSANITIZER_MIN_OSX_VERSION=10.10"
135+ ] ++ lib . optionals ( noSanitizers && lib . versionAtLeast release_version "19" ) [
136+ "-DCOMPILER_RT_BUILD_CTX_PROFILE=OFF"
134137 ] ;
135138
136139 outputs = [ "out" "dev" ] ;
You can’t perform that action at this time.
0 commit comments