remove all references to stdenv.cc.cc.is{GNU,Clang}

use the new `stdenv.cc.is{GNU,Clang}` instead, which will always be
defined.
This commit is contained in:
Eric Seidel
2015-05-11 14:37:53 -07:00
parent 395829686d
commit 662a6b1ca6
25 changed files with 25 additions and 25 deletions

View File

@@ -10,7 +10,7 @@ in
(
assert a.stdenv ? cc ;
assert a.stdenv.cc.cc.isGNU or false ;
assert a.stdenv.cc.isGNU ;
assert a.stdenv.cc ? libc ;
assert a.stdenv.cc.libc != null ;

View File

@@ -1,6 +1,6 @@
{ stdenv, fetch, cmake, libxml2, libedit, llvm, version, clang-tools-extra_src }:
let
gcc = if stdenv.cc.cc.isGNU or false then stdenv.cc.cc else stdenv.cc.cc.gcc;
gcc = if stdenv.cc.isGNU then stdenv.cc.cc else stdenv.cc.cc.gcc;
in stdenv.mkDerivation {
name = "clang-${version}";

View File

@@ -1,7 +1,7 @@
{ stdenv, fetch, cmake, libxml2, libedit, llvm, version, clang-tools-extra_src }:
let
gcc = if stdenv.cc.cc.isGNU or false then stdenv.cc.cc else stdenv.cc.cc.gcc;
gcc = if stdenv.cc.isGNU then stdenv.cc.cc else stdenv.cc.cc.gcc;
in stdenv.mkDerivation {
name = "clang-${version}";