From a020815b8b5551f3e9ee83b7bcbc85bd6ada96d6 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Tue, 13 Nov 2012 18:45:51 +0100 Subject: [PATCH] Detect clang version, instead of assuming default one Change-Id: I559fe4251169f489d89e30b3576f8da08fb0941b --- share/mk/bsd.own.mk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.44.0