summaryrefslogtreecommitdiffstats
path: root/lib/clang
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-10-17 15:50:52 +0000
committerbdrewery <bdrewery@FreeBSD.org>2015-10-17 15:50:52 +0000
commitc8894251e10b362c36b70b0575a33d4624abfd1c (patch)
treef52cda241b91d16c7d3a835fc5658780a6f45d55 /lib/clang
parenta82fb7c8ee60cf1c00ba8e0ddc2b04a57c99db94 (diff)
downloadFreeBSD-src-c8894251e10b362c36b70b0575a33d4624abfd1c.zip
FreeBSD-src-c8894251e10b362c36b70b0575a33d4624abfd1c.tar.gz
Conditionalize the META_MODE tool handling on MK_META_MODE.
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
Diffstat (limited to 'lib/clang')
-rw-r--r--lib/clang/clang.build.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/clang/clang.build.mk b/lib/clang/clang.build.mk
index acb09f5..0c564a5 100644
--- a/lib/clang/clang.build.mk
+++ b/lib/clang/clang.build.mk
@@ -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
OpenPOWER on IntegriCloud