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 8ffcd88
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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
4 changes: 2 additions & 2 deletions .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 All @@ -18,5 +18,5 @@ jobs:
# - run: bazel test --test_output=errors //...
- uses: actions/upload-artifact@v4
with:
name: plugins-${{ matrix.targetPlatform }}
name: plugins-${{ matrix.platform }}
path: bazel-bin/plugins.tar.gz

0 comments on commit 8ffcd88

Please sign in to comment.