Merge pull request #181485 from Itaros/normal-clang-llvm-redirection

cc-wrapper: broaden explicit libc++abi linking for LLVM stdenv
This commit is contained in:
toonn 2022-07-22 16:41:25 +02:00 committed by GitHub
commit 946c3d8389
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -374,7 +374,6 @@ stdenv.mkDerivation {
+ optionalString (libcxx.isLLVM or false) (''
echo "-isystem ${lib.getDev libcxx}/include/c++/v1" >> $out/nix-support/libcxx-cxxflags
echo "-stdlib=libc++" >> $out/nix-support/libcxx-ldflags
'' + lib.optionalString stdenv.targetPlatform.isLinux ''
echo "-lc++abi" >> $out/nix-support/libcxx-ldflags
'')