Re: git: 4dbc7835cdfc - main - mips: Turn off LLVM MIPS targets by default

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 14 Dec 2021 18:57:03 UTC
On 12/14/21 10:42 AM, Ed Maste wrote:
> On Tue, 14 Dec 2021 at 13:27, John Baldwin <jhb@freebsd.org> wrote:
>>
>> This breaks NO_CLEAN=yes builds in I think a lot of object files.
>> ...
>> Perhaps we should be generating those header files in OBJDIR (and use a move-if-changed
>> scheme to avoid bumping the date if the contents haven't changed) so that make can handle
>> these changes?
> 
> Seems reasonable if that change is straightforward, but we could also
> just add a special case in tools/build/depend-cleanup.sh to handle
> this. depend-cleanup can be fairly liberal, e.g. delete *.def.

Yes, but the problem isn't deleting *.def.  Those are static files whose content
changes based on -D flags passed on the command line and you need to delete all
the *.o files that include those .def files.  Note that if you switch from
WITHOUT_LLVM_TARGET_ALL to WITH_LLVM_TARGET_ALL or vice versa between builds
you would also hit this issue.


-- 
John Baldwin