diff options
author | 2017-03-23 17:15:57 +0000 | |
---|---|---|
committer | 2017-03-23 17:54:53 +0000 | |
commit | cb8295848ad15335cac7a005209a283b024f9b00 (patch) | |
tree | 5ba36214f5cbc798929bc515fb228ffda4f5c034 /scripts/ci/windows | |
parent | f9f1688351035a95a99e41a99a6219bfa0e5ff87 (diff) |
Build MSVC Bazel on windows-msvc-x86_64 platform
--
Change-Id: I044b8c244d63232ccec7bf48556248ee2dd1c43d
Reviewed-on: https://cr.bazel.build/9515
PiperOrigin-RevId: 151019006
MOS_MIGRATED_REVID=151019006
Diffstat (limited to 'scripts/ci/windows')
-rwxr-xr-x | scripts/ci/windows/compile_windows.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/scripts/ci/windows/compile_windows.sh b/scripts/ci/windows/compile_windows.sh index 6601653ea4..802edaeeaa 100755 --- a/scripts/ci/windows/compile_windows.sh +++ b/scripts/ci/windows/compile_windows.sh @@ -36,13 +36,23 @@ release_label="$(get_full_release_name)" if [ -n "${release_label}" ]; then export EMBED_LABEL="${release_label}" fi + +# On windows-msvc-x86_64, we build a MSVC Bazel +MSVC_OPTS="" +MSVC_LABEL="" +if [[ $PLATFORM_NAME == windows-msvc-x86_64* ]]; then + MSVC_OPTS="--cpu=x64_windows_msvc --copt=/w" + MSVC_LABEL="-msvc" +fi + ${BOOTSTRAP_BAZEL} --bazelrc=${BAZELRC:-/dev/null} --nomaster_bazelrc build \ --embed_label=${release_label} --stamp \ + ${MSVC_OPTS} \ //src:bazel # Copy the resulting artifact. mkdir -p output/ci -cp bazel-bin/src/bazel output/ci/bazel-$(get_full_release_name).exe +cp bazel-bin/src/bazel output/ci/bazel${MSVC_LABEL}-$(get_full_release_name).exe cp bazel-bin/src/bazel output/bazel.exe -zip -j output/ci/bazel-$(get_full_release_name).zip output/bazel.exe +zip -j output/ci/bazel${MSVC_LABEL}-$(get_full_release_name).zip output/bazel.exe |