Merge pull request #295358 from SharzyL/llvm17_libunwind

llvmPackages_17.clangUseLLVM: apply omitted #220520
This commit is contained in:
a-n-n-a-l-e-e 2024-03-27 13:34:59 -07:00 committed by GitHub
commit 365bae4c5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -213,6 +213,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 {