Merge remote-tracking branch 'origin/master' into hardened-stdenv
Fixes #17801 and #17802.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
, compiler-rt_src
|
||||
, libcxxabi
|
||||
, debugVersion ? false
|
||||
, enableSharedLibraries ? !stdenv.isDarwin
|
||||
, enableSharedLibraries ? true
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -69,6 +69,11 @@ in stdenv.mkDerivation rec {
|
||||
paxmark m bin/{lli,llvm-rtdyld}
|
||||
'';
|
||||
|
||||
postInstall = stdenv.lib.optionalString (stdenv.isDarwin && enableSharedLibraries) ''
|
||||
install_name_tool -id $out/lib/libLLVM.dylib $out/lib/libLLVM.dylib
|
||||
ln -s $out/lib/libLLVM.dylib $out/lib/libLLVM-${version}.dylib
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.src = src;
|
||||
|
||||
Reference in New Issue
Block a user