diff options
author | Roland Reichwein <mail@reichwein.it> | 2021-12-06 16:31:02 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2021-12-06 16:31:02 +0100 |
commit | 955b3b84dd2dadd539dbc707c26c33ad3e63b374 (patch) | |
tree | e87107a2233bef7aac37438c39923366e9099f5e /Makefile | |
parent | f61b0aeafd2f5f2619ff21efb000026364c79230 (diff) |
Fixes for new compiler versions
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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++) |