Ensure clang-tblgen in TOOLSDIR

This commit is contained in:
sjg 2014-05-16 17:57:14 +00:00
parent a8d3f4cc6c
commit 8888e2c8bd

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