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:
Corentin Le Molgat
2022-07-22 08:47:36 +02:00
parent c78f83e4d4
commit 300e9aec2a
2 changed files with 4 additions and 4 deletions

View File

@@ -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/...

View File

@@ -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