18 lines
506 B
Plaintext
Raw Normal View History

#!/bin/bash
# System Ruby's mkmf on Mojave (10.14) and later require SDKROOT set to work correctly.
# Don't need shellcheck to follow the `source`.
2021-04-20 22:52:07 +09:00
# HOMEBREW_LIBRARY is set by bin/brew
# HOMEBREW_SDKROOT is set by extend/ENV/super.rb
2021-04-18 18:56:20 +09:00
# shellcheck disable=SC1090,SC2154
source "${HOMEBREW_LIBRARY}/Homebrew/shims/utils.sh"
2021-04-18 18:56:20 +09:00
try_exec_non_system "${SHIM_FILE}" "$@"
2021-04-18 18:56:20 +09:00
if [[ -z "${SDKROOT}" && -n "${HOMEBREW_SDKROOT}" ]]; then
export SDKROOT=${HOMEBREW_SDKROOT}
fi
2021-04-18 18:56:20 +09:00
safe_exec "/usr/bin/${SHIM_FILE}" "$@"