From 38eaea121fc458d74e3dc3663c144c54936a8a6b Mon Sep 17 00:00:00 2001 From: Kill Your TV Date: Thu, 30 Oct 2014 01:42:55 +0000 Subject: [PATCH] recognize clang in linux --- Makefile.linux | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.linux b/Makefile.linux index c7f3babe..0be317d1 100644 --- a/Makefile.linux +++ b/Makefile.linux @@ -10,6 +10,8 @@ else ifeq ($(shell expr match ${CXXVER} "4\.[7-9]"),3) # >= 4.7 NEEDED_CXXFLAGS += -std=c++11 else ifeq ($(shell expr match ${CXXVER} "4\.6"),3) # = 4.6 NEEDED_CXXFLAGS += -std=c++0x +else ifeq ($(shell expr match $(CXX) 'clang'),5) +NEEDED_CXXFLAGS += -std=c++11 else # not supported $(error Compiler too old) endif