mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +00:00
llvmPackages.clangUseLLVM: add --undefined-version by default
Majority of packages with a version script have broken version scripts, this will likely result in us adding this flag to many packages. To keep things simple, just add it as a default.
This commit is contained in:
parent
b11f469249
commit
019d091938
@ -439,7 +439,8 @@ let
|
||||
++ lib.optional stdenv.targetPlatform.isWasm "-fno-exceptions";
|
||||
nixSupport.cc-ldflags = lib.optionals (
|
||||
!stdenv.targetPlatform.isWasm && !stdenv.targetPlatform.isFreeBSD
|
||||
) [ "-L${targetLlvmLibraries.libunwind}/lib" ];
|
||||
) [ "-L${targetLlvmLibraries.libunwind}/lib" ]
|
||||
++ lib.optional (lib.versionAtLeast metadata.release_version "17") "--undefined-version";
|
||||
}
|
||||
);
|
||||
|
||||
@ -619,6 +620,7 @@ let
|
||||
|
||||
compiler-rt-no-libc = callPackage ./compiler-rt {
|
||||
patches = compiler-rtPatches;
|
||||
doFakeLibgcc = stdenv.hostPlatform.useLLVM or false;
|
||||
stdenv =
|
||||
if stdenv.hostPlatform.useLLVM or false then
|
||||
overrideCC stdenv buildLlvmTools.clangNoCompilerRt
|
||||
|
Loading…
Reference in New Issue
Block a user