summaryrefslogtreecommitdiffhomepage
path: root/common.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index 8df3809..fa3d023 100644
--- a/common.mk
+++ b/common.mk
@@ -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 \