Skip to content

Commit

Permalink
Add C++20 flag for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tryuan99 committed Feb 24, 2025
1 parent 0bcfb95 commit 3dbc80d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
common --enable_bzlmod
common --enable_platform_specific_config

build --cxxopt=-std=c++20
build --host_cxxopt=-std=c++20
build --objccopt=-std=c++20
build:linux --cxxopt=-std=c++20
build:macos --cxxopt=-std=c++20
build:windows --cxxopt=/std:c++20
build:linux --host_cxxopt=-std=c++20
build:macos --host_cxxopt=-std=c++20
build:windows --host_cxxopt=/std:c++20
build:linux --objccopt=-std=c++20
build:macos --objccopt=-std=c++20
build:windows --objccopt=/std:c++20
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
matrix:
platform:
- ubuntu-latest
- windows-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 3dbc80d

Please sign in to comment.