mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-15 00:52:07 +03:00
Merge pull request #332170 from ExpidusOS/fix/firefox-llvm-common-opts
llvmPackages: fix wasm with common opts
This commit is contained in:
commit
e16b22c5da
@ -471,10 +471,12 @@ let
|
||||
&& stdenv.targetPlatform.useLLVM or false
|
||||
) "-lunwind"
|
||||
++ lib.optional stdenv.targetPlatform.isWasm "-fno-exceptions";
|
||||
nixSupport.cc-ldflags = lib.optionals (
|
||||
!stdenv.targetPlatform.isWasm && !stdenv.targetPlatform.isFreeBSD
|
||||
) [ "-L${targetLlvmLibraries.libunwind}/lib" ]
|
||||
++ lib.optional (lib.versionAtLeast metadata.release_version "17") "--undefined-version";
|
||||
nixSupport.cc-ldflags =
|
||||
lib.optionals (!stdenv.targetPlatform.isWasm && !stdenv.targetPlatform.isFreeBSD)
|
||||
(
|
||||
[ "-L${targetLlvmLibraries.libunwind}/lib" ]
|
||||
++ lib.optional (lib.versionAtLeast metadata.release_version "17") "--undefined-version"
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
@ -695,13 +697,11 @@ let
|
||||
./compiler-rt/armv6-scudo-no-yield.patch
|
||||
./compiler-rt/armv6-scudo-libatomic.patch
|
||||
]
|
||||
++ lib.optional (lib.versionAtLeast metadata.release_version "19") (
|
||||
fetchpatch {
|
||||
url = "https://github.com/llvm/llvm-project/pull/99837/commits/14ae0a660a38e1feb151928a14f35ff0f4487351.patch";
|
||||
hash = "sha256-JykABCaNNhYhZQxCvKiBn54DZ5ZguksgCHnpdwWF2no=";
|
||||
relative = "compiler-rt";
|
||||
}
|
||||
);
|
||||
++ lib.optional (lib.versionAtLeast metadata.release_version "19") (fetchpatch {
|
||||
url = "https://github.com/llvm/llvm-project/pull/99837/commits/14ae0a660a38e1feb151928a14f35ff0f4487351.patch";
|
||||
hash = "sha256-JykABCaNNhYhZQxCvKiBn54DZ5ZguksgCHnpdwWF2no=";
|
||||
relative = "compiler-rt";
|
||||
});
|
||||
in
|
||||
{
|
||||
compiler-rt-libc = callPackage ./compiler-rt (
|
||||
|
Loading…
Reference in New Issue
Block a user