llvm7: build with gcc6 on 32-bit linux
Need to use buildPackages.stdenv.cc.isGNU to avoid infinite recursion. We probably need a better way to handle this. Fixes #56457
This commit is contained in:
parent
fd901586cb
commit
ee35de1861
@ -7389,11 +7389,13 @@ in
|
||||
stdenv = overrideCC stdenv buildPackages.gcc6; # with gcc-7: undefined reference to `__divmoddi4'
|
||||
});
|
||||
|
||||
llvmPackages_7 = callPackage ../development/compilers/llvm/7 {
|
||||
llvmPackages_7 = callPackage ../development/compilers/llvm/7 ({
|
||||
inherit (stdenvAdapters) overrideCC;
|
||||
buildLlvmTools = buildPackages.llvmPackages_7.tools;
|
||||
targetLlvmLibraries = targetPackages.llvmPackages_7.libraries;
|
||||
};
|
||||
} // stdenv.lib.optionalAttrs (buildPackages.stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
||||
stdenv = overrideCC stdenv buildPackages.gcc6; # with gcc-7: undefined reference to `__divmoddi4'
|
||||
});
|
||||
|
||||
llvmPackages_latest = llvmPackages_7;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user