shims/super: shim swiftc

This commit is contained in:
Bo Anderson 2021-09-15 03:27:05 +01:00
parent 414935fb39
commit 0eba5b29e9
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65
5 changed files with 6 additions and 3 deletions

View File

@ -0,0 +1 @@
swift

View File

@ -11,5 +11,5 @@ if [[ -z "${SDKROOT}" && -n "${HOMEBREW_SDKROOT}" ]]; then
export SDKROOT=${HOMEBREW_SDKROOT}
fi
try_exec_non_system "swift" "$@"
safe_exec "/usr/bin/swift" "$@"
try_exec_non_system "${SHIM_FILE}" "$@"
safe_exec "/usr/bin/${SHIM_FILE}" "$@"

View File

@ -0,0 +1 @@
swift

View File

@ -12,4 +12,4 @@ export HOMEBREW_CXX="swift_clang++"
# HOMEBREW_OPT is set by extend/ENV/super.rb
# shellcheck disable=SC2154
exec "${HOMEBREW_OPT}/swift/bin/swift" "$@"
exec "${HOMEBREW_OPT}/swift/bin/${0##*/}" "$@"

View File

@ -0,0 +1 @@
swift