]> Zhao Yanbai Git Server - minix.git/commitdiff
Detect clang version, instead of assuming default one
authorLionel Sambuc <lionel@minix3.org>
Tue, 13 Nov 2012 17:45:51 +0000 (18:45 +0100)
committerLionel Sambuc <lionel@minix3.org>
Thu, 15 Nov 2012 15:12:45 +0000 (16:12 +0100)
Change-Id: I559fe4251169f489d89e30b3576f8da08fb0941b

share/mk/bsd.own.mk

index f82be8094e38f38f4a1ce8112c1e98c02619a1e9..6944901ed0854bf7601b2ffa9bdaa15e23eff12c 100644 (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