blob: 77b0f31fe4a3a343077fe9f4f83325733990027e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- a/makefile
+++ b/makefile
@@ -973,11 +973,7 @@
endif
endif
else
-ifdef OVERRIDE_CC
-GCC_VERSION := $(shell $(TOOLCHAIN)$(subst @,,$(OVERRIDE_CC)) -dumpversion 2> /dev/null)
-else
GCC_VERSION := $(shell $(TOOLCHAIN)$(subst @,,$(CC)) -dumpversion 2> /dev/null)
-endif
ifneq ($(OS),solaris)
CLANG_VERSION := $(shell $(TOOLCHAIN)$(subst @,,$(CC)) --version 2> /dev/null | head -n 1 | grep -e 'version [0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?' -o | grep -e '[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?' -o | tail -n 1)
endif
|