Skip to content

Commit 06f6411

Browse files
committed
Set gcc warning flags via --host_cxxopt as well
Signed-off-by: Michael Warres <[email protected]>
1 parent d4eec14 commit 06f6411

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.bazelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ build:clang-tidy --output_groups=report
6565
build:gcc --action_env=BAZEL_COMPILER=gcc
6666
build:gcc --action_env=CC=gcc
6767
build:gcc --action_env=CXX=g++
68-
build:gcc --cxxopt -Wno-invalid-offsetof
69-
build:gcc --cxxopt -Wno-deprecated
68+
build:gcc --cxxopt -Wno-invalid-offsetof --host_cxxopt -Wno-invalid-offsetof
69+
build:gcc --cxxopt -Wno-deprecated --host_cxxopt -Wno-deprecated
7070

7171
# Use Zig C/C++ compiler.
7272
build:zig-cc --incompatible_enable_cc_toolchain_resolution

0 commit comments

Comments
 (0)