HomeFreeBSD

tools/build: Improve host-symlinks failure mode

Description

tools/build: Improve host-symlinks failure mode

Since set -e is enabled by sys.mk, if the tool cannot be found in PATH
then the entire shell command line fails, causing us to not print the
error message below and instead silently (due to the @) fail, only
getting the usual "Error code 1" print from bmake. Thus, provide a dummy
default that will never exist (the same as is used by meta2deps.sh) if
which fails so that we get the error message as intended.

MFC after: 1 week

Details

Provenance
jrtc27Authored on Mar 20 2021, 1:00 PM
Parents
R10:cf5d1112408d: virtio_pci_legacy: Allow memory space for configuration
Branches
Unknown
Tags
Unknown