]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tools/build: Improve host-symlinks failure mode
authorJessica Clarke <jrtc27@FreeBSD.org>
Sat, 20 Mar 2021 13:00:34 +0000 (13:00 +0000)
committerJessica Clarke <jrtc27@FreeBSD.org>
Sat, 20 Mar 2021 13:00:34 +0000 (13:00 +0000)
commit8c9e45503fe41732f72e1a4cc9a231e63b4289ba
treec21b049c4b200a87b728b4ea0efa5f971b5dddf2
parentcf5d1112408ddef3fdff8212599727c49ba90fa4
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
tools/build/Makefile