aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/objc/libtool.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/objc/libtool.sh')
-rwxr-xr-xtools/objc/libtool.sh10
1 files changed, 1 insertions, 9 deletions
diff --git a/tools/objc/libtool.sh b/tools/objc/libtool.sh
index e1275758ea..5ad89a019d 100755
--- a/tools/objc/libtool.sh
+++ b/tools/objc/libtool.sh
@@ -23,15 +23,7 @@
set -eu
-# A trick to allow invoking this script in multiple contexts.
-if [ -z ${MY_LOCATION+x} ]; then
- if [ -d "$0.runfiles/" ]; then
- MY_LOCATION="$0.runfiles/bazel_tools/tools/objc"
- else
- MY_LOCATION="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
- fi
-fi
-
+MY_LOCATION=${MY_LOCATION:-"$0.runfiles/bazel_tools/tools/objc"}
WRAPPER="${MY_LOCATION}/xcrunwrapper.sh"
# Creates a symbolic link to the input argument file and returns the symlink