about summary refs log tree commit diff
path: root/pkgs/development/compilers/llvm
diff options
context:
space:
mode:
authorSharzyL <me@sharzy.in>2024-03-13 00:10:59 +0800
committerSharzyL <me@sharzy.in>2024-03-13 00:10:59 +0800
commit555c7d1ba153b738356518ab1cfce4342582c3e5 (patch)
treeafe3570bc25f75e4668beb5f6be491aee50840cc /pkgs/development/compilers/llvm
parent842ab74be08f5f368e174f9552d26e66a5277273 (diff)
llvmPackages_17.clangUseLLVM: apply #220520
Diffstat (limited to 'pkgs/development/compilers/llvm')
-rw-r--r--pkgs/development/compilers/llvm/17/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/compilers/llvm/17/default.nix b/pkgs/development/compilers/llvm/17/default.nix
index 60cae920945b7..dc72be6e310a3 100644
--- a/pkgs/development/compilers/llvm/17/default.nix
+++ b/pkgs/development/compilers/llvm/17/default.nix
@@ -215,6 +215,7 @@ in let
           (!stdenv.targetPlatform.isWasm && stdenv.targetPlatform.useLLVM or false)
           "-lunwind"
         ++ lib.optional stdenv.targetPlatform.isWasm "-fno-exceptions";
+      nixSupport.cc-ldflags = lib.optionals (!stdenv.targetPlatform.isWasm) [ "-L${targetLlvmLibraries.libunwind}/lib" ];
     };
 
     clangNoLibcxx = wrapCCWith rec {