cc-wrapper: broaden explicit libc++abi linking for LLVM stdenv

This commit is contained in:
Semion Nadezhdin 2022-07-13 21:06:16 +03:00
parent 60c97a605c
commit b060076e21

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
'')