Page MenuHomeFreeBSD

Makefile.inc1: Always have which succeed
ClosedPublic

Authored by andrew on Jun 27 2025, 4:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 12, 7:58 PM
Unknown Object (File)
Sun, Oct 12, 7:58 PM
Unknown Object (File)
Sun, Oct 12, 7:58 PM
Unknown Object (File)
Sun, Oct 12, 8:23 AM
Unknown Object (File)
Mon, Sep 29, 7:22 AM
Unknown Object (File)
Tue, Sep 16, 1:40 PM
Unknown Object (File)
Sep 11 2025, 1:58 PM
Unknown Object (File)
Sep 10 2025, 6:12 AM
Subscribers

Details

Summary

In bootstrap-tools we search for some tools to copy into the obj tree.
If the tool is missing in the host environment then the '[ ! -e ... ]'
check will fail as which will print '<tool> not found'.

There is an issue that which will also return an error so we never get
to the check and don't print the error message. As which outputs an
invalid path on failure we can just add || true to ensure make
continues.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable