These are useful for testing new additions to the script. Whilst here,
harden the script a little and improve error messages.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
We run the script twice. The first time is during bootstrap-tools for obj-tools and there it's under BMAKE(ENV) which doesn't do any TARGET/MACHINE(_ARCH) assignment (just leaves them as they are for the parent, which may mean re-inferring). The second time is the one for the real OBJTOP where it's run under WMAKE(ENV) and picks up TARGET(_ARCH)=MACHINE(_ARCH) from CROSSENV.
Probably _cleanobj_fast_depend_hack should just do env MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH} instead, to be honest.