Move disabling of gccForLibs for iOS to build-support cc-wrapper

This commit is contained in:
Steven Pease 2021-01-20 10:14:46 -08:00
parent 8f74a08fa0
commit b766673c6f
2 changed files with 1 additions and 1 deletions

View File

@ -65,6 +65,7 @@ let
&& libcxx == null
&& !(stdenv.targetPlatform.useLLVM or false)
&& !(stdenv.targetPlatform.useAndroidPrebuilt or false)
&& !(stdenv.targetPlatform.isiOS or false)
&& gccForLibs != null;
# older compilers (for example bootstrap's GCC 5) fail with -march=too-modern-cpu

View File

@ -11870,7 +11870,6 @@ in
# 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
else if targetPlatform.isiOS then null
else gcc.cc;
libstdcxx5 = callPackage ../development/libraries/gcc/libstdc++/5.nix { };