Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shims/mac/super/make: use standard exec routines #15672

Merged
merged 1 commit into from
Jul 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 6 additions & 8 deletions Library/Homebrew/shims/mac/super/make
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#!/bin/bash

export HOMEBREW_CCCFG="O${HOMEBREW_CCCFG}"
# HOMEBREW_LIBRARY is set by bin/brew
# shellcheck disable=SC2154
source "${HOMEBREW_LIBRARY}/Homebrew/shims/utils.sh"

SHIM_FILE="${0##*/}"
export HOMEBREW_CCCFG="O${HOMEBREW_CCCFG}"

if xcrun --find "${SHIM_FILE}" &>/dev/null
then
exec xcrun "${SHIM_FILE}" "$@"
else
exec xcrun make "$@"
fi
try_exec_non_system "${SHIM_FILE}" "$@"
safe_exec "/usr/bin/make" "$@"