summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-02-16 16:33:19 +0100
committerRoland Reichwein <mail@reichwein.it>2020-02-16 16:33:19 +0100
commit2f4118526972f7f3d5147342bc65909fcc82b6c7 (patch)
tree3514b840da299d7203ce1bbcbf81d36be1108260 /Makefile
parent0aaa6440a23e1dedf4a907fa46f979ea9d248e99 (diff)
clang++-9, integrate cppbnf
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index b18defe..1c2db6c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,16 @@
PROJECTNAME=minicc
-CXX=clang++-8
+CXX=clang++-9
#CXX=g++-8
-#CXXFLAGS=-O0 -D_DEBUG
+CXXFLAGS=-O0 -D_DEBUG
# -fprofile-instr-generate -fcoverage-mapping
# gcc:--coverage
-CXXFLAGS=-O2 -DNDEBUG
+#CXXFLAGS=-O2 -DNDEBUG
-CXXFLAGS+= -Wall -std=c++17 -I. -Ilib
+CXXFLAGS+= -Wall -std=c++17 -I.
-ifeq ($(CXX),clang++-8)
+ifeq ($(CXX),clang++-9)
# currently broken:
# ld.lld-8: error: undefined symbol: boost::re_detail_106700::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const
#CXXFLAGS+= -stdlib=libc++
@@ -28,7 +28,7 @@ LIBS=\
-lboost_regex \
-lpthread
-ifeq ($(CXX),clang++-8)
+ifeq ($(CXX),clang++-9)
LIBS+= \
-fuse-ld=lld-8 \
-lstdc++ \
@@ -48,6 +48,7 @@ SRC=\
grammer.cpp \
lexer.cpp \
minicc.cpp \
+ cppbnf.cpp \
test-lexer.cpp \
googletest/src/gtest-all.cpp \
googlemock/src/gmock-all.cpp