Skip to content

Commit

Permalink
recognize clang in linux
Browse files Browse the repository at this point in the history
  • Loading branch information
kytvi2p committed Oct 30, 2014
1 parent 6681e25 commit 38eaea1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38eaea1

Please sign in to comment.