llvmPackages_11: Add $rsrc/lib to default cflags

This commit is contained in:
Giulio De Pasquale 2022-10-14 18:46:22 +02:00
parent e1b98ac282
commit 2000ae5429

View file

@ -43,6 +43,7 @@ let
mkdir "$rsrc"
ln -s "${cc.lib}/lib/clang/${release_version}/include" "$rsrc"
echo "-resource-dir=$rsrc" >> $out/nix-support/cc-cflags
echo "-B $rsrc/lib" >> $out/nix-support/cc-cflags
'';
mkExtraBuildCommands = cc: mkExtraBuildCommands0 cc + ''
ln -s "${targetLlvmLibraries.compiler-rt.out}/lib" "$rsrc/lib"