summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2022-12-15 11:01:37 +0100
committerRoland Reichwein <mail@reichwein.it>2022-12-15 11:01:37 +0100
commit55d1d3612141ef1fe858b2bccb950da51cfe7a17 (patch)
tree50cc3a90dd5d3eea8e4f1020da165e2bc31e0556 /Makefile
parent53e50b9fd7f051d039e40f77fa00498dd9a8e2b0 (diff)
Bugfix ValidationHEADv1.10master
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