From: Lionel Sambuc Date: Tue, 13 Nov 2012 17:45:51 +0000 (+0100) Subject: Detect clang version, instead of assuming default one X-Git-Tag: v3.2.1~212 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.named-rrchecker.html?a=commitdiff_plain;h=a020815b8b5551f3e9ee83b7bcbc85bd6ada96d6;p=minix.git Detect clang version, instead of assuming default one Change-Id: I559fe4251169f489d89e30b3576f8da08fb0941b --- diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index f82be8094..6944901ed 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -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