From 2f4118526972f7f3d5147342bc65909fcc82b6c7 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 16 Feb 2020 16:33:19 +0100 Subject: clang++-9, integrate cppbnf --- Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Makefile') 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::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 -- cgit v1.2.3