Skip to content

Commit eb565f4

Browse files
committed
Make make sure that msys build actually builds msys version
RELNOTES: None. PiperOrigin-RevId: 156102527
1 parent ef27fa5 commit eb565f4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/ci/windows/compile_windows.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@ if [ -n "${release_label}" ]; then
3838
fi
3939

4040
# On windows-msvc-x86_64, we build a MSVC Bazel
41-
MSVC_OPTS=""
41+
OPTS="--cpu=x64_windown_msys --host_cpu=x64_windows_msys"
4242
MSVC_LABEL=""
4343
if [[ $PLATFORM_NAME == windows-msvc-x86_64* ]]; then
44-
MSVC_OPTS="--cpu=x64_windows_msvc --copt=/w"
44+
OPTS="--cpu=x64_windows_msvc --host_cpu=x64_windows_msvc --copt=/w"
4545
MSVC_LABEL="-msvc"
4646
fi
4747

4848
export MSYS_NO_PATHCONV=1
4949
export MSYS2_ARG_CONV_EXCL="*"
5050
${BOOTSTRAP_BAZEL} --bazelrc=${BAZELRC:-/dev/null} --nomaster_bazelrc build \
5151
--embed_label=${release_label} --stamp \
52-
${MSVC_OPTS} \
52+
${OPTS} \
5353
//src:bazel //src:bazel_with_jdk
5454

5555
# Copy the resulting artifacts.

0 commit comments

Comments
 (0)