HomeFreeBSD

tools/build/make.py: Avoid calling brew --prefix on macOS unnecessarily

Description

tools/build/make.py: Avoid calling brew --prefix on macOS unnecessarily

If all the require variables (XCC/XCXX/XCPP/XLD) are already set in the
environment, we don't have to infer a default value for the cross toolchain
path. This avoids an additional brew --prefix call when building with
cheribuild (since it already sets all these variables).

(cherry picked from commit 2b181156c893843266c2825098360db2364dbd23)

Details

Provenance
arichardsonAuthored on Mar 5 2021, 10:21 AM
Parents
rG0a0e327fad67: tools/build/make.py: Don't call brew --prefix if --cross-bindir is set
Branches
Unknown
Tags
Unknown