shims: enable cc arg refurbishment for ninja

This commit is contained in:
Bo Anderson 2022-03-12 18:18:14 +00:00
parent f0f1eb6d4a
commit d23de6c54c
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1 @@
../../super/ninja

View File

@ -0,0 +1 @@
../../super/ninja

View File

@ -0,0 +1,19 @@
#!/bin/bash
# HOMEBREW_LIBRARY is set by bin/brew
# HOMEBREW_CCCFG and HOMEBREW_OPT are set by extend/ENV/super.rb
# shellcheck disable=SC2154
if [[ -z "${HOMEBREW_LIBRARY}" ]]
then
echo "${0##*/}: This shim is internal and must be run via brew." >&2
exit 1
fi
source "${HOMEBREW_LIBRARY}/Homebrew/shims/utils.sh"
# shellcheck disable=SC2154
export HOMEBREW_CCCFG="O${HOMEBREW_CCCFG}"
try_exec_non_system "ninja" "$@"
echo "ninja: Shim failed to find ninja in PATH."
exit 1