cross-gcc: disable `langCC' when targeting MinGW

This commit is contained in:
Ludovic Courtès 2013-03-06 00:01:10 +01:00
parent 69a13e4e92
commit c00225bcae
1 changed files with 5 additions and 0 deletions

View File

@ -2072,6 +2072,11 @@ let
if crossSystem != null && crossSystem.config == "i586-pc-gnu" if crossSystem != null && crossSystem.config == "i586-pc-gnu"
then gnu.libpthreadCross then gnu.libpthreadCross
else null; else null;
# XXX: We have troubles cross-compiling libstdc++ on MinGW (see
# <http://hydra.nixos.org/build/4268232>), so don't even try.
langCC = (crossSystem == null
|| crossSystem.config != "i686-pc-mingw32");
}); });
libc = libcCross; libc = libcCross;
binutils = binutilsCross; binutils = binutilsCross;