summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-07 13:31:06 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-07 13:31:06 +0100
commitbae93ee22c30c23b7e5f7b92bdb12e992269d64e (patch)
tree0bbecf96a8df1bda24744306a430c799775d9e37 /makefile
parentf540242c73d13a47952728dada622fd1100a3fff (diff)
fix clang/gcc detection on windows (nw)
Diffstat (limited to 'makefile')
-rw-r--r--makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/makefile b/makefile
index 633935dcfa4..a920eaa720a 100644
--- a/makefile
+++ b/makefile
@@ -731,7 +731,7 @@ SRC = src
ifeq ($(OS),windows)
GCC_VERSION := $(shell $(subst @,,$(CC)) -dumpversion 2> NUL)
-CLANG_VERSION := $(shell $(subst @,,$(CC)) --version 2> NUL| head -n 1 | sed "s/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$$/\1/")
+CLANG_VERSION := $(shell $(subst @,,$(CC)) --version 2> NUL| head -n 1 | grep clang | sed "s/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$$/\1/" | head -n 1)
PYTHON_AVAILABLE := $(shell $(PYTHON) --version > NUL 2>&1 && echo python)
ifdef MSBUILD
MSBUILD_PARAMS := /v:minimal /m:$(NUMBER_OF_PROCESSORS)