diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,12 +1,19 @@ CXX=clang++-11 #CXX=g++-10 +STANDARD=c++17 +#STANDARD=c++20 + CXXFLAGS=-O0 -g -D_DEBUG #CXXFLAGS=-O2 -DNDEBUG -CXXFLAGS+=-Wall -Iinclude -std=c++20 +CXXFLAGS+=-Wall -Iinclude -std=$(STANDARD) ifeq ($(CXX),clang++-11) +COMPILER_SUITE=clang +endif + +ifeq ($(COMPILER_SUITE),clang) CXXFLAGS+=-stdlib=libc++ endif @@ -16,7 +23,7 @@ LDLIBS+=\ -lboost_timer \ -lboost_system \ -ifeq ($(CXX),clang++-11) +ifeq ($(COMPILER_SUITE),clang) LIBS+= \ -fuse-ld=lld-11 \ -lc++ \ |