tools/build/make.py: Avoid calling brew --prefix on macOS unnecessarily
authorAlex Richardson <arichardson@FreeBSD.org>
Fri, 5 Mar 2021 10:21:12 +0000 (10:21 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Mon, 22 Mar 2021 11:55:07 +0000 (11:55 +0000)
commit2b181156c893843266c2825098360db2364dbd23
treefc624e7223ec3c2ff34ed6a187e618df074bc88b
parent2b9dbcd390dfbd573d3403360a36c5ade9815266
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).
tools/build/make.py