[Bug 263880] make clean, cleandir doesn't clean /usr/obj

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 13 May 2022 18:40:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263880

--- Comment #3 from Jonathan Vasquez <jon@xyinn.org> ---
Since I reported this, I've discovered the "NO_CLEAN" option (-DNO_CLEAN) which
seems to answer my previous question regarding /usr/obj and speeding up the
builds as mentioned in the docs. I think the man page could use a little bit of
clarification, and also the handbook. I'll submit a patch to the handbook for:

https://docs.freebsd.org/en/books/handbook/cutting-edge/#makeworld (24.6.4.1.
Performing a Clean Build)

to note that the build system does an automatic cleaning at the start of every
build unless this option is specific. Although I do also know that user may
need to be careful when rebuilding with artifacts in /usr/obj since I've
noticed in weird instances it could lead to some weirdness during runtime of
those newly compiled binaries (at least in other OSes, I'm not sure how much I
should worry about that in FreeBSD though.. especially if also using ccache).

https://forums.freebsd.org/threads/make-buildworld-speed-up-possibilities.73127/

-- 
You are receiving this mail because:
You are the assignee for the bug.