summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Wilbert Pol <wilbertpol@users.noreply.github.com>2015-07-14 20:30:01 +0200
committer Wilbert Pol <wilbertpol@users.noreply.github.com>2015-07-14 20:30:01 +0200
commit13967bb8a0bba3e6ab17d07af5b89c165b70f386 (patch)
tree997ce1e7ef0dcc80870b9c108528e1cb16aeb137 /makefile
parent943ecf021f6f5326fda61c6fdbef151e74163a07 (diff)
Fix clang version detection on osx yet again (nw)
Diffstat (limited to 'makefile')
-rw-r--r--makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/makefile b/makefile
index 1450af1afe9..04d0a748baf 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 | tail -n 1)
+CLANG_VERSION := $(shell clang --version 2> /dev/null | head -n 1 | 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)