summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorEric Seidel <gridaphobe@gmail.com>2015-05-11 14:30:13 -0700
committerEric Seidel <gridaphobe@gmail.com>2015-05-11 14:39:36 -0700
commit395829686d0219b3e14fe6ffae60a24b4e50370b (patch)
treed8ec773c31ba34feab780dd688b32cf9de0ce0f9 /pkgs/build-support
parentea0c877858e071d2258680cb4779786ff1f0dea0 (diff)
downloadnixpkgs-395829686d0219b3e14fe6ffae60a24b4e50370b.tar
nixpkgs-395829686d0219b3e14fe6ffae60a24b4e50370b.tar.gz
nixpkgs-395829686d0219b3e14fe6ffae60a24b4e50370b.tar.bz2
nixpkgs-395829686d0219b3e14fe6ffae60a24b4e50370b.tar.lz
nixpkgs-395829686d0219b3e14fe6ffae60a24b4e50370b.tar.xz
nixpkgs-395829686d0219b3e14fe6ffae60a24b4e50370b.tar.zst
nixpkgs-395829686d0219b3e14fe6ffae60a24b4e50370b.zip
add is{GNU,Clang} attrs to cc-wrapper.
These will be more pleasant to use than the existing

    (cc.cc.isClang or false)

nonsense we currently do.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/cc-wrapper/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix
index f6826c837ca..c8af548a2ca 100644
--- a/pkgs/build-support/cc-wrapper/default.nix
+++ b/pkgs/build-support/cc-wrapper/default.nix
@@ -10,6 +10,7 @@
 , zlib ? null, extraPackages ? []
 , dyld ? null # TODO: should this be a setup-hook on dyld?
 , setupHook ? ./setup-hook.sh
+, isGNU ? false, isClang ? false
 }:
 
 with stdenv.lib;
@@ -41,7 +42,7 @@ stdenv.mkDerivation {
   # The wrapper scripts use 'cat', so we may need coreutils.
   coreutils = if nativeTools then null else coreutils;
 
-  passthru = { inherit nativeTools nativeLibc nativePrefix; };
+  passthru = { inherit nativeTools nativeLibc nativePrefix isGNU isClang; };
 
   buildCommand =
     ''