diff options
| author | Max Howell | 2012-09-01 21:43:46 -0400 |
|---|---|---|
| committer | Max Howell | 2012-09-01 23:18:28 -0400 |
| commit | 2375f71e8227efc7cec1400c5c4cf686b9ac2d0e (patch) | |
| tree | d67a5df7fecee89fafc9f277b52573e78f3b7226 /Library | |
| parent | 31d70b5c33a11880d31a583d9bf21b03a27cef8a (diff) | |
| download | brew-2375f71e8227efc7cec1400c5c4cf686b9ac2d0e.tar.bz2 | |
Add mig tool to superenv
Necessary because it otherwise calls actual cc after it does whatever it does. So we force it to call our cc.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/ENV/4.3/mig | 3 | ||||
| -rwxr-xr-x | Library/ENV/4.3/xcrun | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Library/ENV/4.3/mig b/Library/ENV/4.3/mig new file mode 100755 index 000000000..a7a12557a --- /dev/null +++ b/Library/ENV/4.3/mig @@ -0,0 +1,3 @@ +#!/bin/bash +pwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +exec xcrun mig -cc $pwd/cc "$@" diff --git a/Library/ENV/4.3/xcrun b/Library/ENV/4.3/xcrun index 49d99a644..d6f4e84a0 100755 --- a/Library/ENV/4.3/xcrun +++ b/Library/ENV/4.3/xcrun @@ -3,10 +3,17 @@ # But many build-systems expect it to work. This fixes that. # NOTE only works if they call xcrun without a full-path. Cross your fingers! +[ "$#" -eq 0 ] && exec /usr/bin/xcrun + if [ $HOMEBREW_SDKROOT ]; then arg0="$1" shift + case $arg0 in + -*) + exec /usr/bin/xcrun "$arg0" "$@";; + esac + path=$(/usr/bin/xcrun -find $arg0) [ -x "$path" ] && exec "$path" "$@" |
