HomeFreeBSD

build: only inspect the first word of toolchain tools

Description

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

Details

Provenance
kevansAuthored on Jan 9 2024, 4:21 AM
Reviewer
imp
Differential Revision
D43372: build: only inspect the first word of toolchain tools
Parents
rGcef5e56f3fea: bhyveload: add CAP_SEEK to our dirfd rights
Branches
Unknown
Tags
Unknown