Cleanup stale Options.inc files from the previous libllvm build for

clang 4.0.0.  Otherwise, these can get included before the two newly
generated ones (which are different) for clang 5.0.0.

Reported by:	Mark Millard
MFC after:	2 months
X-MFC-With:	r321369
This commit is contained in:
Dimitry Andric 2017-07-24 18:52:40 +00:00
parent 5f65e20c64
commit edcc769f3f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=321433

View File

@ -813,6 +813,16 @@ _worldtmp: .PHONY
${OBJTREE}${.CURDIR}/world32/${.CURDIR}/lib/libc/.depend.${f}.*
.endif
.endfor
# 20170724 remove stale lib/clang/libllvm/Options.inc file, of which there are
# two different versions after r308421, one for llvm-lib, one for llvm-dlltool
.for d in ${OBJTREE} ${WORLDTMP}
.for f in ${d}${.CURDIR}/lib/clang/libllvm/Options.inc
.if exists(${f}) || exists(${f}.d)
@echo Removing stale generated ${f} files
@rm -f ${f} ${f}.d
.endif
.endfor
.endfor
.for _dir in \
lib lib/casper usr legacy/bin legacy/usr
mkdir -p ${WORLDTMP}/${_dir}