summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Wilbert Pol <wilbertpol@users.noreply.github.com>2015-07-14 11:11:45 +0200
committer Dirk Best <mail@dirk-best.de>2015-07-14 11:11:45 +0200
commit7db7f9e159ccb879b68b5dfa8fc80191e6ea2b83 (patch)
treee31ee527ff29cc6932b06de94517e59b0333229e /makefile
parent1cba08f4246386ad3188f727290fc1ac1e0fb95f (diff)
fix clang version detection on macos
Diffstat (limited to 'makefile')
-rw-r--r--makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/makefile b/makefile
index 7a7d2229f71..1450af1afe9 100644
--- a/makefile
+++ b/makefile
@@ -696,7 +696,7 @@ CHECK_CLANG :=
else
GCC_VERSION := $(shell $(subst @,,$(CC)) -dumpversion 2> /dev/null)
ifneq ($(OS),solaris)
-CLANG_VERSION := $(shell clang --version 2> /dev/null | grep '[0-9]\.[0-9]' -o | head -n 1)
+CLANG_VERSION := $(shell clang --version 2> /dev/null | grep '[0-9]\.[0-9]' -o | tail -n 1)
endif
PYTHON_AVAILABLE := $(shell $(PYTHON) --version > /dev/null 2>&1 && echo python)
CHECK_CLANG := $(shell gcc --version 2> /dev/null | grep 'clang' | head -n 1)