Split bsdmake wrapper out from make wrapper
This commit is contained in:
parent
7df136cd50
commit
5a56ad123d
@ -1 +0,0 @@
|
|||||||
make
|
|
||||||
7
Library/ENV/4.3/bsdmake
Executable file
7
Library/ENV/4.3/bsdmake
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
export HOMEBREW_CCCFG="O$HOMEBREW_CCCFG"
|
||||||
|
pwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
bsd="$pwd/../../../bin/bsdmake"
|
||||||
|
# bsdmake used to be keg-only: support users who don't run brew doctor
|
||||||
|
[ -x "$bsd" ] || bsd="$(${HOMEBREW_BREW_FILE} --prefix bsdmake)/bin/bsdmake"
|
||||||
|
exec "$bsd" "$@"
|
||||||
@ -1,11 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export HOMEBREW_CCCFG="O$HOMEBREW_CCCFG"
|
export HOMEBREW_CCCFG="O$HOMEBREW_CCCFG"
|
||||||
if [ $(basename "$0") == "bsdmake" ]; then
|
exec xcrun make "$@"
|
||||||
pwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
||||||
bsd="$pwd/../../../bin/bsdmake"
|
|
||||||
# bsdmake used to be keg-only: support users who don't run brew doctor
|
|
||||||
[ -x "$bsd" ] || bsd="$(${HOMEBREW_BREW_FILE} --prefix bsdmake)/bin/bsdmake"
|
|
||||||
exec "$bsd" "$@"
|
|
||||||
else
|
|
||||||
exec xcrun make "$@"
|
|
||||||
fi
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user