Linux: Autodetect clang-3.5 toolchain

Use clang-3.5 if found, otherwise gcc

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-03-11 14:22:31 -07:00
parent 62f8bd6679
commit 566c3ed3c3
+6
View File
@@ -39,7 +39,13 @@
#
# Set to 1 for GCC-4.8.2 and to 0 for Clang-3.5 (Ubuntu 14.04)
HAVE_CLANG35=$(shell clang-3.6 --version)
ifeq ($(HAVE_CLANG35),)
USE_GCC=1
else
USE_GCC=0
endif
ifeq ($(USE_GCC),1)
# GCC Options: