Merge pull request #15666 from carlocab/make-shim
shims/mac: handle usage of Homebrew `make`
This commit is contained in:
commit
ae7b791a21
@ -1,4 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
export HOMEBREW_CCCFG="O${HOMEBREW_CCCFG}"
|
|
||||||
exec xcrun bsdmake "$@"
|
|
1
Library/Homebrew/shims/mac/super/bsdmake
Symbolic link
1
Library/Homebrew/shims/mac/super/bsdmake
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
make
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user