Skip to content

Commit b4d62e5

Browse files
committed
bazel: improve windows support
1 parent 860e3cb commit b4d62e5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ build:macos --cxxopt=-mmacos-version-min=10.15 --host_cxxopt=-mmacos-version-min
6060
###############################################################################
6161

6262
build:windows --cxxopt=/std:c++20 --host_cxxopt=/std:c++20
63+
# Enable preprocessor conformance mode needed to correctly support __VA_OPT__
64+
build:windows --cxxopt=/Zc:preprocessor --host_cxxopt=/Zc:preprocessor
6365

6466
# Enable the runfiles symlink tree on Windows. This makes it possible to build
6567
# the pip package on Windows without an intermediate data-file archive, as the

.github/workflows/amd64_windows_bazel.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ jobs:
4747
python-version: ${{matrix.python.version}}
4848
- name: Check Python
4949
run: python --version
50-
- name: Install Bazel
51-
run: choco install bazel
50+
- uses: bazel-contrib/setup-bazel@0.15.0
5251
- name: Check Bazel
5352
run: bazel version
5453
- name: Restore bazel cache

0 commit comments

Comments
 (0)