2021-03-02 17:06:05 +00:00
|
|
|
#!/bin/bash
|
2021-03-30 01:15:05 +02:00
|
|
|
|
2021-03-02 17:06:05 +00:00
|
|
|
# System Ruby's mkmf on Mojave (10.14) and later require SDKROOT set to work correctly.
|
|
|
|
|
2021-03-30 01:15:05 +02:00
|
|
|
# Don't need shellcheck to follow the `source`.
|
|
|
|
# shellcheck disable=SC1090
|
2021-03-02 17:06:05 +00:00
|
|
|
source "$HOMEBREW_LIBRARY/Homebrew/shims/utils.sh"
|
|
|
|
|
|
|
|
try_exec_non_system "$SHIM_FILE" "$@"
|
|
|
|
|
|
|
|
if [[ -z "$SDKROOT" && -n "$HOMEBREW_SDKROOT" ]]; then
|
|
|
|
export SDKROOT=$HOMEBREW_SDKROOT
|
|
|
|
fi
|
|
|
|
|
|
|
|
safe_exec "/usr/bin/$SHIM_FILE" "$@"
|