shims/mac: handle usage of Homebrew make

We have a handful of formulae that use Homebrew `make` to build. Doing
this evades our compiler shims. Let's try to avoid this by allowing our
shims to support usage of Homebrew `make` by calling it as `gmake` in
the formula.
This commit is contained in:
Carlo Cabrera 2023-07-12 02:16:32 +08:00
parent bf0c896c34
commit 9ece93ea49
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0
2 changed files with 10 additions and 5 deletions

View File

@ -1,4 +0,0 @@
#!/bin/bash
export HOMEBREW_CCCFG="O${HOMEBREW_CCCFG}"
exec xcrun bsdmake "$@"

View File

@ -0,0 +1 @@
make

View File

@ -1,4 +1,12 @@
#!/bin/bash #!/bin/bash
export HOMEBREW_CCCFG="O${HOMEBREW_CCCFG}" export HOMEBREW_CCCFG="O${HOMEBREW_CCCFG}"
exec xcrun "make" "$@"
SHIM_FILE="${0##*/}"
if xcrun --find "${SHIM_FILE}" &>/dev/null
then
exec xcrun "${SHIM_FILE}" "$@"
else
exec xcrun make "$@"
fi