Skip to content

Commit

Permalink
Merge NixOS#213021: build-support/cc-wrapper: add libstdc++fs
Browse files Browse the repository at this point in the history
...into default library path for clang; merge into staging-next
  • Loading branch information
vcunat committed Jan 28, 2023
2 parents 951b517 + 4763533 commit 710d53b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/build-support/cc-wrapper/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,11 @@ stdenv.mkDerivation {
&& !(stdenv.targetPlatform.useLLVM or false)
&& gccForLibs != null) ''
echo "--gcc-toolchain=${gccForLibs}" >> $out/nix-support/cc-cflags
# Pull in 'cc.out' target to get 'libstdc++fs.a'. It should be in
# 'cc.lib'. But it's a gcc package bug.
# TODO(trofi): remove once gcc is fixed to move libraries to .lib output.
echo "-L${gccForLibs}/${optionalString (targetPlatform != hostPlatform) "/${targetPlatform.config}"}/lib" >> $out/nix-support/cc-ldflags
''

##
Expand Down

0 comments on commit 710d53b

Please sign in to comment.