From 300e9aec2a5fd927f3c73cf363b91a691e56a6ef Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Fri, 22 Jul 2022 08:47:36 +0200 Subject: [PATCH] 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 --- .github/workflows/bazel_windows.yml | 4 ++-- bazel/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bazel_windows.yml b/.github/workflows/bazel_windows.yml index 8f1a692678..1c368c5ac1 100644 --- a/.github/workflows/bazel_windows.yml +++ b/.github/workflows/bazel_windows.yml @@ -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/... diff --git a/bazel/README.md b/bazel/README.md index 7ab9003893..c6cb00e5ec 100644 --- a/bazel/README.md +++ b/bazel/README.md @@ -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