Skip to content

Commit

Permalink
set gcc clang cl for ubuntu build
Browse files Browse the repository at this point in the history
  • Loading branch information
林濯 committed Mar 1, 2024
1 parent fc33db5 commit 329dc9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ build --action_env=PYENV_VERSION
build --action_env=PYENV_SHELL
# This is needed for some core tests to run correctly
build:windows --enable_runfiles
build:linux --per_file_copt="-\\.(asm|S)$@-Werror -Wno-missing-braces"
build:macos --per_file_copt="-\\.(asm|S)$@-Werror -Wno-missing-braces"
build:clang-cl --per_file_copt="-\\.(asm|S)$@-Werror -Wno-missing-braces"
build:linux --per_file_copt="-\\.(asm|S)$@-Werror"
build:macos --per_file_copt="-\\.(asm|S)$@-Werror"
build:clang-cl --per_file_copt="-\\.(asm|S)$@-Werror"
build:gcc-cl --per_file_copt="-\\.(asm|S)$@-Werror"
build:msvc-cl --per_file_copt="-\\.(asm|S)$@-WX"
# Ignore warnings for protobuf generated files and external projects.
build --per_file_copt="\\.pb\\.cc$@-w"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bazel_gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Build
working-directory: ${{github.workspace}}
run: bazel build ...
run: bazel build --config=gcc-cl ...

- name: Test
working-directory: ${{github.workspace}}
Expand Down

0 comments on commit 329dc9f

Please sign in to comment.