fix clang version detection on macos

This commit is contained in:
Wilbert Pol 2015-07-14 11:11:45 +02:00 committed by Dirk Best
parent 1cba08f424
commit 7db7f9e159

View File

@ -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)