aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/makefile/compile_ios_protobuf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/contrib/makefile/compile_ios_protobuf.sh')
-rwxr-xr-xtensorflow/contrib/makefile/compile_ios_protobuf.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tensorflow/contrib/makefile/compile_ios_protobuf.sh b/tensorflow/contrib/makefile/compile_ios_protobuf.sh
index e8b9454e7e..4056db18a7 100755
--- a/tensorflow/contrib/makefile/compile_ios_protobuf.sh
+++ b/tensorflow/contrib/makefile/compile_ios_protobuf.sh
@@ -15,9 +15,12 @@
# ==============================================================================
# Builds protobuf 3 for iOS.
-set -x
set -e
+if [[ -n MACOSX_DEPLOYMENT_TARGET ]]; then
+ export MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion)
+fi
+
SCRIPT_DIR=$(dirname $0)
source "${SCRIPT_DIR}/build_helper.subr"