windows(bazel): Use the correct syntax to set C++20
ref: https://docs.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=msvc-170
This commit is contained in:
4
.github/workflows/bazel_windows.yml
vendored
4
.github/workflows/bazel_windows.yml
vendored
@@ -18,6 +18,6 @@ jobs:
|
||||
choco install bazel
|
||||
bazel --version
|
||||
- name: Build
|
||||
run: bazel build -c opt --cxxopt="-std:c++20" //ortools/... //examples/...
|
||||
run: bazel build -c opt --cxxopt="/std:c++20" //ortools/... //examples/...
|
||||
- name: Test
|
||||
run: bazel test -c opt --cxxopt="-std:c++20" --test_output=errors //ortools/... //examples/...
|
||||
run: bazel test -c opt --cxxopt="/std:c++20" --test_output=errors //ortools/... //examples/...
|
||||
|
||||
@@ -75,7 +75,7 @@ You must compile OR-Tools using C++20:
|
||||
* on Windows when using MSVC:
|
||||
|
||||
```sh
|
||||
bazel build --cxxopt="-std:c++20" ...
|
||||
bazel build --cxxopt="/std:c++20" ...
|
||||
```
|
||||
|
||||
## Testing
|
||||
@@ -91,7 +91,7 @@ You may run tests using:
|
||||
* on Windows when using MSVC:
|
||||
|
||||
```sh
|
||||
bazel test --cxxopt="-std:c++20" ...
|
||||
bazel test --cxxopt="/std:c++20" ...
|
||||
```
|
||||
|
||||
## Integration
|
||||
|
||||
Reference in New Issue
Block a user