summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefiles/Makefile.tools9
1 files changed, 4 insertions, 5 deletions
diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools
index c27b55c..c6f9dd6 100644
--- a/makefiles/Makefile.tools
+++ b/makefiles/Makefile.tools
@@ -400,11 +400,10 @@ else
ifeq ($(word 1,$(ccvsn)),clang)
toolchain := clang
endif
- ifeq ($(word 1,$(ccvsn)),Apple)
- ifeq ($(word 2,$(ccvsn)),clang)
- # Apple clang
- toolchain := clang
- endif
+ ifeq ($(word 2,$(ccvsn)),clang)
+ # Some newer clangs have distributor as first word
+ # (ie, Debian, Apple, etc)
+ toolchain := clang
endif
endif