summaryrefslogtreecommitdiffhomepage
path: root/common.mk
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2022-12-31 13:45:31 +0100
committerRoland Reichwein <mail@reichwein.it>2022-12-31 13:45:31 +0100
commit06a5b6fe71abac44286adf9c9f439ad5a2e3a519 (patch)
treefba06f886db2b116030e2316646ebc83245a94d3 /common.mk
parent921c799f3aa0163cd2eeda5a1c3c8d10d5989e9c (diff)
Added tests
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 \