make isClang work the way a user might expect

This commit is contained in:
Jude Taylor
2015-08-04 09:55:29 -07:00
parent dc74a81129
commit ef95107ddc
5 changed files with 7 additions and 5 deletions

View File

@@ -253,7 +253,7 @@ stdenv.mkDerivation rec {
# On some ARM platforms --enable-thumb
"--enable-shared --disable-static"
(enableFeature true "pic")
(if (stdenv.cc.cc.isClang or false) then "--cc=clang" else null)
(if stdenv.cc.isClang then "--cc=clang" else null)
(enableFeature smallBuild "small")
(enableFeature runtimeCpuDetectBuild "runtime-cpudetect")
(enableFeature grayBuild "gray")