Skip to content

Commit 1ed0a1c

Browse files
committed
fix windows c++17
1 parent aac440a commit 1ed0a1c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.bazelci/presubmit.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,17 @@ tasks:
219219
- "--enable_workspace"
220220
- "--keep_going"
221221
- "--build_tag_filters=-integration-test"
222-
- "--cxxopt=/std=c++17"
223-
- "--host_cxxopt=/std=c++17"
222+
- "--cxxopt=/std:c++17"
223+
- "--host_cxxopt=/std:c++17"
224224
test_targets:
225225
- "--"
226226
- "..."
227227
test_flags:
228228
- "--noenable_bzlmod"
229229
- "--enable_workspace"
230230
- "--test_tag_filters=-integration-test"
231-
- "--cxxopt=/std=c++17"
232-
- "--host_cxxopt=/std=c++17"
231+
- "--cxxopt=/std:c++17"
232+
- "--host_cxxopt=/std:c++17"
233233

234234
debian:
235235
<<: *reusable_config
@@ -372,11 +372,11 @@ tasks:
372372
platform: windows
373373
bazel: 7.x
374374
build_flags:
375-
- "--cxxopt=/std=c++17"
376-
- "--host_cxxopt=/std=c++17"
375+
- "--cxxopt=/std:c++17"
376+
- "--host_cxxopt=/std:c++17"
377377
test_flags:
378-
- "--cxxopt=/std=c++17"
379-
- "--host_cxxopt=/std=c++17"
378+
- "--cxxopt=/std:c++17"
379+
- "--host_cxxopt=/std:c++17"
380380
integration_test_bzlmod_windows_upcoming:
381381
<<: *reusable_build_test_all
382382
# coverage is not supported on Windows
@@ -549,15 +549,15 @@ tasks:
549549
- "--enable_workspace"
550550
- "--test_tag_filters=-integration-test"
551551
# recent protobuf and abseil-cpp requires C++17 which is not used by default in Bazel 7
552-
- "--cxxopt=/std=c++17"
553-
- "--host_cxxopt=/std=c++17"
552+
- "--cxxopt=/std:c++17"
553+
- "--host_cxxopt=/std:c++17"
554554
build_flags:
555555
- "--noenable_bzlmod"
556556
- "--enable_workspace"
557557
- "--build_tag_filters=-integration-test"
558558
# recent protobuf and abseil-cpp requires C++17 which is not used by default in Bazel 7
559-
- "--cxxopt=/std=c++17"
560-
- "--host_cxxopt=/std=c++17"
559+
- "--cxxopt=/std:c++17"
560+
- "--host_cxxopt=/std:c++17"
561561

562562
integration_test_pip_repository_annotations_ubuntu_workspace:
563563
<<: *reusable_build_test_all

0 commit comments

Comments
 (0)