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

@@ -12,7 +12,7 @@ stdenv.mkDerivation {
sha256 = "1b0f4wm1qmgcswmixv9mwbp86hbdqxk754hml8cjv5vajvqwdpzv";
};
sourceRoot = if (stdenv.cc.cc.isClang or false)
sourceRoot = if stdenv.cc.isClang
then "astyle/build/clang"
else "astyle/build/gcc";