summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 75e9bc5..98364d1 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@ ifeq ($(DEBIANVERSION),10)
CXX=g++-8
else
+ifeq ($(wildcard $(shell which clang++-14)),)
ifeq ($(wildcard $(shell which clang++-13)),)
ifeq ($(wildcard $(shell which clang++-12)),)
ifeq ($(wildcard $(shell which clang++-11)),)
@@ -31,6 +32,9 @@ endif
else
CXX=clang++-13
endif
+else
+CXX=clang++-14
+endif
endif
@@ -41,6 +45,14 @@ ifeq ($(CXXFLAGS),)
CXXFLAGS=-O2 -DNDEBUG
endif
+ifeq ($(CXX),clang++-14)
+ifeq ($(ONDEBIAN),yes)
+COMPILER_SUITE=clang
+LIBS+=-fuse-ld=lld-14
+STANDARD=c++20
+endif
+endif
+
ifeq ($(CXX),clang++-13)
ifeq ($(ONDEBIAN),yes)
COMPILER_SUITE=clang