aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV/4.3/xcrun
blob: 3d2dd642ec766f32775ac04f555209a66e6babb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
# This wrapper because 4.3 xcrun doesn't work with CLT-only configurations
# 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!

if [ $HOMEBREW_SDKROOT ]; then
  exec /usr/bin/xcrun "$@"
else
  cmd="$1"
  shift
  exec "/usr/bin/$cmd" "$@"
fi