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.

(cherry picked from commit 8c9e45503fe41732f72e1a4cc9a231e63b4289ba)

Details

Provenance
jrtc27Authored on Mar 20 2021, 1:00 PM
Parents
R10:7590d7800c44: bhyve: support relocating fbuf and passthru data BARs
Branches
Unknown
Tags
Unknown