diff --git a/.bazelrc b/.bazelrc index ca51e2fa0..47888badc 100644 --- a/.bazelrc +++ b/.bazelrc @@ -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" diff --git a/.github/workflows/bazel_gcc.yml b/.github/workflows/bazel_gcc.yml index 589d54620..b14577e8a 100644 --- a/.github/workflows/bazel_gcc.yml +++ b/.github/workflows/bazel_gcc.yml @@ -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}}