]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Conditionalize the META_MODE tool handling on MK_META_MODE.
authorbdrewery <bdrewery@FreeBSD.org>
Sat, 17 Oct 2015 15:50:52 +0000 (15:50 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Sat, 17 Oct 2015 15:50:52 +0000 (15:50 +0000)
It was not being used outside of META_MODE but this should make it more clear
that it is only for META_MODE.

Sponsored by: EMC / Isilon Storage Division

lib/clang/clang.build.mk

index acb09f51c544241068683ad1f2990784e499fbe9..0c564a5fadf18760f58b3cf762f4242f23da55bb 100644 (file)
@@ -39,6 +39,7 @@ CXXFLAGS.clang+= -stdlib=libc++
 
 .PATH: ${LLVM_SRCS}/${SRCDIR}
 
+.if ${MK_META_MODE} == "yes"
 .if empty(TOOLSDIR) || !exists(${TOOLSDIR}/usr/bin/clang-tblgen)
 .if ${MACHINE} == "host" && defined(BOOTSTRAPPING_TOOLS)
 .if !empty(LEGACY_TOOLS) && exists(${LEGACY_TOOLS}/usr/bin/tblgen)
@@ -57,6 +58,7 @@ TOOLSDIR?=
 TBLGEN= ${TOOLSDIR}/usr/bin/tblgen
 CLANG_TBLGEN= ${TOOLSDIR}/usr/bin/clang-tblgen
 .endif
+.endif # ${MK_META_MODE} == "yes"
 TBLGEN?=       tblgen
 CLANG_TBLGEN?= clang-tblgen