summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2021-12-06 16:31:02 +0100
committerRoland Reichwein <mail@reichwein.it>2021-12-06 16:31:02 +0100
commit955b3b84dd2dadd539dbc707c26c33ad3e63b374 (patch)
treee87107a2233bef7aac37438c39923366e9099f5e /Makefile
parentf61b0aeafd2f5f2619ff21efb000026364c79230 (diff)
Fixes for new compiler versions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index f3f072f..50c49b6 100644
--- a/Makefile
+++ b/Makefile
@@ -3,30 +3,30 @@ VERSION=$(shell dpkg-parsechangelog --show-field Version)
DISTROS=base debian10 ubuntu2004 ubuntu2010
-ifeq ($(wildcard $(shell which clang++-11)),)
+ifeq ($(wildcard $(shell which clang++-13)),)
ifeq ($(wildcard $(shell which clang++)),)
-CXX=g++-10
+CXX=g++-11
else
CXX=clang++
endif
else
-CXX=clang++-11
+CXX=clang++-13
endif
# boost is buggy for C++20: error: static_assert failed due to requirement 'detail::is_endian_reversible_inplace<char8_t>
-#STANDARD=c++17
-STANDARD=c++20
+STANDARD=c++17
+#STANDARD=c++20
ifeq ($(CXXFLAGS),)
-CXXFLAGS=-O0 -g -D_DEBUG
-#CXXFLAGS=-O2 -DNDEBUG
+#CXXFLAGS=-O0 -g -D_DEBUG
+CXXFLAGS=-O2 -DNDEBUG
endif
CXXFLAGS+=-Wall -Iinclude -std=$(STANDARD)
-ifeq ($(CXX),clang++-11)
+ifeq ($(CXX),clang++-13)
COMPILER_SUITE=clang
-LIBS+=-fuse-ld=lld-11
+LIBS+=-fuse-ld=lld-13
endif
ifeq ($(CXX),clang++)