From cb8a5e25382cb67a80449ac1fb78ae9680650b92 Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Wed, 8 Mar 2017 14:30:49 +0000 Subject: 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 --- compile.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'compile.sh') 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 -- cgit v1.2.3