Remove old generated unwind.h when using LLVM libunwind
When not using LLVM libunwind, unwind.h is a generated header and a stale copy may remain in the OBJDIR after enabling LLVM libunwind. Explicitly remove it. Reported by: bz Reviewed by: bdrewery Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5019
This commit is contained in:
parent
33a2a37b86
commit
ba86521396
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=294542
@ -193,7 +193,12 @@ LIB2_DIVMOD_FUNCS:= ${LIB2_DIVMOD_FUNCS:S/${sym}//g}
|
|||||||
.endif
|
.endif
|
||||||
|
|
||||||
COMMONHDRS= tm.h tconfig.h options.h gthr-default.h
|
COMMONHDRS= tm.h tconfig.h options.h gthr-default.h
|
||||||
.if ${MK_LLVM_LIBUNWIND} == no
|
.if ${MK_LLVM_LIBUNWIND} != "no"
|
||||||
|
# unwind.h is a generated file when MK_LLVM_LIBUNWIND == "no", and a stale
|
||||||
|
# copy may be left behind in OBJDIR when switching, so remove it explicitly.
|
||||||
|
beforebuild:
|
||||||
|
@rm -f ${.OBJDIR}/unwind.h
|
||||||
|
.else
|
||||||
COMMONHDRS+= unwind.h
|
COMMONHDRS+= unwind.h
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user