Skip to content

Commit

Permalink
Merge pull request #15666 from carlocab/make-shim
Browse files Browse the repository at this point in the history
shims/mac: handle usage of Homebrew `make`
  • Loading branch information
carlocab committed Jul 12, 2023
2 parents db4a95c + 9ece93e commit ae7b791
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 0 additions & 4 deletions Library/Homebrew/shims/mac/super/bsdmake

This file was deleted.

1 change: 1 addition & 0 deletions Library/Homebrew/shims/mac/super/bsdmake
10 changes: 9 additions & 1 deletion Library/Homebrew/shims/mac/super/make
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/bin/bash

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

0 comments on commit ae7b791

Please sign in to comment.