aboutsummaryrefslogtreecommitdiffhomepage
path: root/compile.sh
diff options
context:
space:
mode:
authorGravatar Yun Peng <pcloudy@google.com>2017-03-08 14:30:49 +0000
committerGravatar Vladimir Moskva <vladmos@google.com>2017-03-08 15:07:05 +0000
commitcb8a5e25382cb67a80449ac1fb78ae9680650b92 (patch)
tree2e60ba611839365626caa8bd286d49cac0c35b7b /compile.sh
parentc77eac95ffdee4f127e20266c41cb92cec2a8956 (diff)
Make Bazel build with MSVC-default-toolchain Bazel
After this change, a msys bazel can be built with a MSVC-default Bazel by adding --cpu=x64_windows_msys --host=x64_windows_msys See https://github.com/bazelbuild/bazel/issues/2627 -- Change-Id: Iaa82bf4dd911c5740b98d3b2739dfccca6203f79 Reviewed-on: https://cr.bazel.build/9293 PiperOrigin-RevId: 149532274 MOS_MIGRATED_REVID=149532274
Diffstat (limited to 'compile.sh')
-rwxr-xr-xcompile.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/compile.sh b/compile.sh
index 67223e6715..2b5c073f43 100755
--- a/compile.sh
+++ b/compile.sh
@@ -113,6 +113,12 @@ if [[ $PLATFORM == "darwin" ]] && \
xcodebuild -showsdks 2> /dev/null | grep -q '\-sdk iphonesimulator'; then
EXTRA_BAZEL_ARGS="${EXTRA_BAZEL_ARGS-} --define IPHONE_SDK=1"
fi
+
+case "${PLATFORM}" in
+msys*|mingw*)
+ EXTRA_BAZEL_ARGS="${EXTRA_BAZEL_ARGS-} --cpu=x64_windows_msys --host_cpu=x64_windows_msys"
+esac
+
source scripts/bootstrap/bootstrap.sh
if [ $DO_COMPILE ]; then