Add isGNU attribute to gccs

This commit is contained in:
Shea Levy 2015-01-13 10:00:42 -05:00 committed by Eric Seidel
parent 48f63c2f2e
commit 16fe4be790
3 changed files with 3 additions and 2 deletions

View File

@ -487,7 +487,7 @@ stdenv.mkDerivation ({
else null; else null;
passthru = passthru =
{ inherit langC langCC langObjC langObjCpp langAda langFortran langVhdl langGo version; }; { inherit langC langCC langObjC langObjCpp langAda langFortran langVhdl langGo version; isGNU = true; };
inherit enableParallelBuilding enableMultilib; inherit enableParallelBuilding enableMultilib;

View File

@ -8,7 +8,7 @@
, withGd ? false, gd ? null, libpng ? null , withGd ? false, gd ? null, libpng ? null
}: }:
assert stdenv.cc ? gcc; assert stdenv.cc.cc.isGNU or false;
let let
build = import ./common.nix; build = import ./common.nix;

View File

@ -55,6 +55,7 @@ rec {
# Needed by the GCC wrapper. # Needed by the GCC wrapper.
langC = true; langC = true;
langCC = true; langCC = true;
isGNU = true;
}; };