diff options
author | sjg <sjg@FreeBSD.org> | 2014-05-16 15:01:39 +0000 |
---|---|---|
committer | sjg <sjg@FreeBSD.org> | 2014-05-16 15:01:39 +0000 |
commit | 4314d24c5f72b2ccb05586f796e125f6ca669717 (patch) | |
tree | 697cc94a3c450ddc12ae306f10bd28bd1954bcc9 /lib/clang | |
parent | e100a3724fef64a19a709dce45a92fbcf6a607e9 (diff) | |
download | FreeBSD-src-4314d24c5f72b2ccb05586f796e125f6ca669717.zip FreeBSD-src-4314d24c5f72b2ccb05586f796e125f6ca669717.tar.gz |
Handle bootstrapping for host
Diffstat (limited to 'lib/clang')
-rw-r--r-- | lib/clang/clang.build.mk | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/clang/clang.build.mk b/lib/clang/clang.build.mk index 27c0ca0..f60ec62 100644 --- a/lib/clang/clang.build.mk +++ b/lib/clang/clang.build.mk @@ -40,9 +40,18 @@ CXXFLAGS+= -fno-exceptions -fno-rtti .PATH: ${LLVM_SRCS}/${SRCDIR} +.if ${MACHINE} == "host" && defined(EARLY_BUILD) +.if !empty(LEGACY_TOOLS) && exists(${LEGACY_TOOLS}/usr/bin/tblgen) +TOOLSDIR= ${LEGACY_TOOLS} +.endif +.endif .if ${MK_STAGING} == "yes" -TBLGEN= ${STAGE_HOST_OBJTOP}/usr/bin/tblgen -CLANG_TBLGEN= ${STAGE_HOST_OBJTOP}/usr/bin/clang-tblgen +TOOLSDIR?= ${STAGE_HOST_OBJTOP} +.endif +TOOLSDIR?= +.if !empty(TOOLSDIR) +TBLGEN= ${TOOLSDIR}/usr/bin/tblgen +CLANG_TBLGEN= ${TOOLSDIR}/usr/bin/clang-tblgen .endif TBLGEN?= tblgen CLANG_TBLGEN?= clang-tblgen |