diff options
| author | Raito Bezarius <masterancpp@gmail.com> | 2023-03-26 17:20:04 +0200 |
|---|---|---|
| committer | Raito Bezarius <masterancpp@gmail.com> | 2023-04-05 17:27:24 +0200 |
| commit | 92bf9338909d29b8e85a1bd426e15efbc4c87226 (patch) | |
| tree | b1f21a080149150cea46cb05437196ec40e225c4 | |
| parent | llvmPackages_git: apply #211230 to llvmPackages_git (diff) | |
| download | nixpkgs-origin/llvmPackages_git.libcxx-tests.tar.gz | |
llvmPackages_git.libcxx: remove `preInstall` phase for Darwinorigin/llvmPackages_git.libcxx-tests
This has not been added for `llvmPackages_15.libcxx`, therefore, we do not need
it anymore.
| -rw-r--r-- | pkgs/development/compilers/llvm/git/libcxx/default.nix | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/pkgs/development/compilers/llvm/git/libcxx/default.nix b/pkgs/development/compilers/llvm/git/libcxx/default.nix index cd023b353528..94374c8a312d 100644 --- a/pkgs/development/compilers/llvm/git/libcxx/default.nix +++ b/pkgs/development/compilers/llvm/git/libcxx/default.nix @@ -91,20 +91,6 @@ stdenv.mkDerivation rec { ninjaFlags = lib.optional headersOnly "generate-cxx-headers"; installTargets = lib.optional headersOnly "install-cxx-headers"; - preInstall = lib.optionalString (stdenv.isDarwin && !headersOnly) '' - for file in lib/*.dylib; do - if [ -L "$file" ]; then continue; fi - - baseName=$(basename $(${stdenv.cc.targetPrefix}otool -D $file | tail -n 1)) - installName="$out/lib/$baseName" - abiName=$(echo "$baseName" | sed -e 's/libc++/libc++abi/') - - for other in $(${stdenv.cc.targetPrefix}otool -L $file | awk '$1 ~ "/libc\\+\\+abi" { print $1 }'); do - ${stdenv.cc.targetPrefix}install_name_tool -change $other ${cxxabi}/lib/$abiName $file - done - done - ''; - passthru = { isLLVM = true; inherit cxxabi; |
