Merge pull request #163044 from symphorien/c++20-i686
pkgsi686Linux.gccForLibs: use recent gcc
This commit is contained in:
@@ -14810,10 +14810,7 @@ with pkgs;
|
||||
|
||||
# This is for e.g. LLVM libraries on linux.
|
||||
gccForLibs =
|
||||
# with gcc-7: undefined reference to `__divmoddi4'
|
||||
if stdenv.targetPlatform.isi686
|
||||
then gcc6.cc
|
||||
else if stdenv.targetPlatform == stdenv.hostPlatform && targetPackages.stdenv.cc.isGNU
|
||||
if stdenv.targetPlatform == stdenv.hostPlatform && targetPackages.stdenv.cc.isGNU
|
||||
# Can only do this is in the native case, otherwise we might get infinite
|
||||
# recursion if `targetPackages.stdenv.cc.cc` itself uses `gccForLibs`.
|
||||
then targetPackages.stdenv.cc.cc
|
||||
|
||||
Reference in New Issue
Block a user