diff options
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,4 +1,8 @@ +CXX=clang++-14 + +ifeq ($(shell which $(CXX)),) CXX=clang++-13 +endif ifeq ($(shell which $(CXX)),) CXX=clang++-11 @@ -51,6 +55,8 @@ CXXFLAGS+=-DYEAR=\"$(YEAR)\" CXXFLAGS+=-pthread ifeq ($(CXX),clang++-11) CXXFLAGS+=-std=c++20 #-stdlib=libc++ +else ifeq ($(CXX),clang++-14) +CXXFLAGS+=-std=c++2b #-stdlib=libc++ else ifeq ($(CXX),clang++-13) CXXFLAGS+=-std=c++2b #-stdlib=libc++ else ifeq ($(CXX),g++-11) @@ -67,6 +73,10 @@ LIBS+= \ #-lc++abi #-lc++fs #-lstdc++fs +else ifeq ($(CXX),clang++-14) +LIBS+= \ +-fuse-ld=lld-14 \ +-lstdc++ else ifeq ($(CXX),clang++-13) LIBS+= \ -fuse-ld=lld-13 \ |