Use clang to compile if installed
This commit is contained in:
parent
8d2421de33
commit
c35f822f1c
7
Makefile
7
Makefile
@ -1,4 +1,9 @@
|
||||
CXX = $(shell wx-config --cxx) -I/include
|
||||
#Try using clang, if it's installed
|
||||
ifneq ($(shell which clang),clang not found)
|
||||
CXX = $(patsubst g++,clang++, $(shell wx-config --cxx)) -std=c++11 -I/include
|
||||
else
|
||||
CXX = $(shell wx-config --cxx) -I/include
|
||||
endif
|
||||
|
||||
SOURCES = $(wildcard include/**/*.cpp src/network/*.cpp src/settings/*.cpp include/*.cpp)
|
||||
OBJECTS = $(patsubst %.cpp,%.o, $(SOURCES))
|
||||
|
Loading…
Reference in New Issue
Block a user