diff options
author | Roland Reichwein <mail@reichwein.it> | 2021-12-11 15:48:21 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2021-12-11 15:48:21 +0100 |
commit | 347723027c83faee91837b01599738fdf0e39e2d (patch) | |
tree | c2a209ef9f1d8f29551ec29c32f6b555fd2a12d2 /common.mk | |
parent | 6e686fee894a864aa8a4f6462dd36785dcaeef18 (diff) |
Update supported compilers and OSes
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -1,5 +1,16 @@ +CXX=clang++-13 + +ifeq ($(shell which $(CXX)),) +CXX=clang++-11 +endif + +ifeq ($(shell which $(CXX)),) +CXX=g++-11 +endif + +ifeq ($(shell which $(CXX)),) CXX=g++-10 -#CXX=clang++-11 +endif ifeq ($(shell which $(CXX)),) CXX=g++-8 @@ -37,6 +48,10 @@ CXXFLAGS+=-Wall -I. CXXFLAGS+=-pthread ifeq ($(CXX),clang++-11) CXXFLAGS+=-std=c++20 #-stdlib=libc++ +else ifeq ($(CXX),clang++-13) +CXXFLAGS+=-std=c++2b #-stdlib=libc++ +else ifeq ($(CXX),g++-11) +CXXFLAGS+=-std=c++20 #-stdlib=libc++ else CXXFLAGS+=-std=c++17 endif @@ -49,6 +64,10 @@ LIBS+= \ #-lc++abi #-lc++fs #-lstdc++fs +else ifeq ($(CXX),clang++-13) +LIBS+= \ +-fuse-ld=lld-13 \ +-lstdc++ else LIBS+= \ -lstdc++ \ |