From 555c7d1ba153b738356518ab1cfce4342582c3e5 Mon Sep 17 00:00:00 2001 From: SharzyL Date: Wed, 13 Mar 2024 00:10:59 +0800 Subject: [PATCH] llvmPackages_17.clangUseLLVM: apply #220520 --- pkgs/development/compilers/llvm/17/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/compilers/llvm/17/default.nix b/pkgs/development/compilers/llvm/17/default.nix index 60cae920945b..dc72be6e310a 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 {