Detect clang version, instead of assuming default one

Change-Id: I559fe4251169f489d89e30b3576f8da08fb0941b
This commit is contained in:
Lionel Sambuc 2012-11-13 18:45:51 +01:00
parent 8335a475fc
commit a020815b8b

View file

@ -47,9 +47,8 @@ CPPFLAGS+= ${SMP_FLAGS}
__uname_s!= uname -s
.if ${__uname_s:Uunknown} == "Minix"
USETOOLS?= never
. if ${USETOOLS:Uno} != "yes"
#HAVE_LLVM?=2.9
HAVE_LLVM?=3.1
. if ${USETOOLS:Uno} != "yes" && ${HAVE_LLVM:U} == ""
HAVE_LLVM!= clang --version | grep version | cut -d' ' -f 3
. endif
. if !defined(HOSTPROG) && !defined(HOSTLIB)
# LSC FIXME: Override MACHINE as the native minix host make command will set