aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/ci/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ci/build.sh')
-rwxr-xr-xscripts/ci/build.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh
index ac1d52095a..df7e794b39 100755
--- a/scripts/ci/build.sh
+++ b/scripts/ci/build.sh
@@ -167,10 +167,16 @@ function bazel_build() {
fi
# Build the packages
+ local ARGS=
+ if [[ $PLATFORM == "darwin" ]] && \
+ xcodebuild -showsdks 2> /dev/null | grep -q '\-sdk iphonesimulator'; then
+ ARGS="--define IPHONE_SDK=1"
+ fi
./output/bazel --bazelrc=${BAZELRC:-/dev/null} --nomaster_bazelrc build \
--embed_label=${release_label} --stamp \
--workspace_status_command=scripts/ci/build_status_command.sh \
--define JAVA_VERSION=${JAVA_VERSION} \
+ ${ARGS} \
//scripts/packages/... || exit $?
if [ -n "${1-}" ]; then