From 2000ae54295e601a08ec13ea5057557a30b9a13a Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Fri, 14 Oct 2022 18:46:22 +0200 Subject: [PATCH] llvmPackages_11: Add `$rsrc/lib` to default cflags --- pkgs/development/compilers/llvm/11/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/compilers/llvm/11/default.nix b/pkgs/development/compilers/llvm/11/default.nix index 82a78af85cac..c3abface37eb 100644 --- a/pkgs/development/compilers/llvm/11/default.nix +++ b/pkgs/development/compilers/llvm/11/default.nix @@ -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"