Merge pull request #12990 from Bo98/ninja-refurbish-args
shims: enable cc arg refurbishment for ninja
This commit is contained in:
commit
f7b7293425
1
Library/Homebrew/shims/linux/super/ninja
Symbolic link
1
Library/Homebrew/shims/linux/super/ninja
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../super/ninja
|
||||||
1
Library/Homebrew/shims/mac/super/ninja
Symbolic link
1
Library/Homebrew/shims/mac/super/ninja
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../super/ninja
|
||||||
19
Library/Homebrew/shims/super/ninja
Executable file
19
Library/Homebrew/shims/super/ninja
Executable 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
|
||||||
Loading…
x
Reference in New Issue
Block a user