Ensure clang-tblgen in TOOLSDIR

This commit is contained in:
Simon J. Gerraty 2014-05-16 17:57:14 +00:00
parent f7df4ea864
commit dc8c6c5c08

View File

@ -49,7 +49,7 @@ TOOLSDIR= ${LEGACY_TOOLS}
TOOLSDIR?= ${STAGE_HOST_OBJTOP}
.endif
TOOLSDIR?=
.if !empty(TOOLSDIR)
.if !empty(TOOLSDIR) && exists(${TOOLSDIR}/usr/bin/clang-tblgen)
TBLGEN= ${TOOLSDIR}/usr/bin/tblgen
CLANG_TBLGEN= ${TOOLSDIR}/usr/bin/clang-tblgen
.endif