Merge pull request #7817 from gridaphobe/cc-wrapper-isgnu-isclang

Add isGNU and isClang attributes to cc-wrapper
This commit is contained in:
Eric Seidel
2015-05-14 10:09:07 -07:00
30 changed files with 42 additions and 32 deletions

View File

@@ -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 =
''