]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
build: only inspect the first word of toolchain tools
authorKyle Evans <kevans@FreeBSD.org>
Tue, 9 Jan 2024 04:21:36 +0000 (22:21 -0600)
committerKyle Evans <kevans@FreeBSD.org>
Tue, 9 Jan 2024 04:22:25 +0000 (22:22 -0600)
commit5d1ecf0b6184748a51bca01b497c808c3e13aa67
treebf17d8eff8c8390c003d5e902a8ea3f23c897b03
parentcef5e56f3fea33d6c421276af49f2967453ad4ff
build: only inspect the first word of toolchain tools

CC/CXX/CPP/LD may all have arguments supplied in various circumstances,
which break the logic here.  We only need to determine which of these
tools we're expecting to invoke from PATH, which just requires
examination of the first word.  Limit our scope to exactly that.

Patch suggested by: jrtc27
Reviewed by: imp, jrtc27
Differential Revision: https://reviews.freebsd.org/D43372
tools/build/Makefile