llvmPackages_17.clangUseLLVM: apply #220520

This commit is contained in:
SharzyL 2024-03-13 00:10:59 +08:00
parent 842ab74be0
commit 555c7d1ba1
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -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 {