summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob P. Liljenberg <admin@qvantnet.com>2023-12-12 23:07:39 +0100
committerGitHub <noreply@github.com>2023-12-12 23:07:39 +0100
commitb71538eabe06607042201e21af9a078277f3b3e8 (patch)
treefc0f482843877409eb86e18da1d2a84682f24031
parenta017056ea07f6532b333f3e6f10a023505fb0470 (diff)
parent730af5d4e1a09996f9e83c6aa26382a11964b03f (diff)
Merge pull request #666 from muneebmahmed/macos-clang
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2adc8c2..970e818 100644
--- a/Makefile
+++ b/Makefile
@@ -59,10 +59,14 @@ override CXX_VERSION_MAJOR := $(shell echo $(CXX_VERSION) | cut -d '.' -f 1)
CLANG_WORKS = false
GCC_WORKS = false
+MIN_CLANG_VERSION = 16
#? Supported is Clang 16.0.0 and later
ifeq ($(CXX_IS_CLANG),true)
- ifneq ($(shell test $(CXX_VERSION_MAJOR) -lt 16; echo $$?),0)
+ ifeq ($(shell $(CXX) --version | grep Apple >/dev/null 2>&1; echo $$?),0)
+ MIN_CLANG_VERSION := 15
+ endif
+ ifneq ($(shell test $(CXX_VERSION_MAJOR) -lt $(MIN_CLANG_VERSION); echo $$?),0)
CLANG_WORKS := true
endif
endif