Skip to content

Commit a41d806

Browse files
committed
use /std for windows
1 parent 5c1330f commit a41d806

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

.bazelci/presubmit.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,8 @@ tasks:
108108
bazel: ${{ bazel }}
109109
build_flags:
110110
- "--keep_going"
111-
- '--cxxopt=-std=c++17'
112-
- '--host_cxxopt=-std=c++17'
113111
test_flags:
114-
# Minimum bazel supported C++
115112
- "--keep_going"
116-
- '--cxxopt=-std=c++17'
117-
- '--host_cxxopt=-std=c++17'
118113
build_targets:
119114
- "//..."
120115
test_targets:

examples/bzlmod/.bazelrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ startup --windows_enable_symlinks
55

66
common --enable_bzlmod
77
common --lockfile_mode=update
8+
# This adds an implicit --config=<osname>
9+
# See docs for osname values
10+
# https://bazel.build/reference/command-line-reference#common_options-flag--enable_platform_specific_config
11+
common --enable_platform_specific_config
12+
13+
common:windows --cxxopt=/std=c++17
14+
common:windows --host_cxxopt=/std=c++17
15+
common:linux --cxxopt=-std=c++17
16+
common:linux --host_cxxopt=-std=c++17
17+
common:macos --cxxopt=-std=c++17
18+
common:macos --host_cxxopt=-std=c++17
819

920
coverage --java_runtime_version=remotejdk_11
1021

0 commit comments

Comments
 (0)