aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/objc
diff options
context:
space:
mode:
authorGravatar aehlig <aehlig@google.com>2017-04-18 16:31:34 +0200
committerGravatar Klaus Aehlig <aehlig@google.com>2017-04-18 16:41:48 +0200
commitb6cc4c1d35cfc8427ab3ed94b9e8c1f38cd910e0 (patch)
tree90853914e45dd111a43e14d0d488b9c36ba5ad97 /tools/objc
parent7a90b9a409bea4a69e0c80d418c6193d64c8eb3f (diff)
Automated g4 rollback of commit 501b62716af12ba42c019bd9f231468b3c144757.
*** Reason for rollback *** Broke //src/test/shell/bazel:cc_inc_library_test on darwin see http://ci.bazel.io/job/bazel-tests/BAZEL_VERSION=HEAD,PLATFORM_NAME=darwin-x86_64/704/console *** Original change description *** Basic open-source crosstool to support targetting apple platform types. RELNOTES: None. PiperOrigin-RevId: 153460334
Diffstat (limited to 'tools/objc')
-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