@@ -36,20 +36,15 @@ import %workspace%/build/rust_lint.bazelrc
3636# Prevents bazel cache invalidation when switching terminals
3737build --incompatible_strict_action_env
3838
39- # Our dependencies (ICU, zlib, etc.) produce a lot of these warnings, so we disable them. Depending
40- # on the clang version, zlib either produces warnings for -Wdeprecated-non-prototype or does not
41- # have that option, so disable -Wunknown-warning-option there too.
39+ # Our dependencies (ICU, zlib, etc.) produce a lot of these warnings, so we disable them.
4240build --per_file_copt='external@-Wno-error'
4341build --per_file_copt='external@-Wno-suggest-override'
4442build --per_file_copt='external/v8@-Wno-unused-function'
45- build --per_file_copt='external/zlib@-Wno-unknown-warning-option,-Wno- deprecated-non-prototype'
46- build --host_per_file_copt='external/zlib@-Wno-unknown-warning-option,-Wnodeprecated -non-prototype'
43+ build --per_file_copt='external/zlib@-Wno-deprecated-non-prototype'
44+ build --host_per_file_copt='external/zlib@-Wno-deprecated -non-prototype'
4745build --per_file_copt=external/protobuf@-Wno-deprecated-declarations
4846build --host_per_file_copt=external/protobuf@-Wno-deprecated-declarations
4947
50- ## simdutf
51- build --per_file_copt=external/simdutf@-Wno-unused-const-variable
52-
5348# TODO(cleanup): Causes warnings with LLVM20, fix and enable again
5449build --copt=-Wno-nontrivial-memaccess
5550
@@ -77,19 +72,19 @@ build:unix --per_file_copt=external/ssl@-fno-exceptions
7772build:unix --per_file_copt=external/v8@-fno-exceptions
7873build:unix --per_file_copt=external/ada-url@-fno-exceptions
7974build:unix --per_file_copt=external/simdutf@-fno-exceptions
80- build:windows --per_file_copt=external/abseil-cpp@/GX-
81- build:windows --per_file_copt=external/protobuf@/GX-
82- build:windows --per_file_copt=external/com_google_tcmalloc@/GX-
83- build:windows --per_file_copt=external/com_googlesource_chromium_icu@/GX-
84- build:windows --per_file_copt=external/perfetto@/GX-
85- build:windows --per_file_copt=external/ssl@/GX-
86- build:windows --per_file_copt=external/v8@/GX-
87- build:windows --per_file_copt=external/ada-url@/GX-
88- build:windows --per_file_copt=external/simdutf@/GX-
75+ build:windows --per_file_copt=external/abseil-cpp@/clang:-fno-exceptions
76+ build:windows --per_file_copt=external/protobuf@/clang:-fno-exceptions
77+ build:windows --per_file_copt=external/com_google_tcmalloc@/clang:-fno-exceptions
78+ build:windows --per_file_copt=external/com_googlesource_chromium_icu@/clang:-fno-exceptions
79+ build:windows --per_file_copt=external/perfetto@/clang:-fno-exceptions
80+ build:windows --per_file_copt=external/ssl@/clang:-fno-exceptions
81+ build:windows --per_file_copt=external/v8@/clang:-fno-exceptions
82+ build:windows --per_file_copt=external/ada-url@/clang:-fno-exceptions
83+ build:windows --per_file_copt=external/simdutf@/clang:-fno-exceptions
8984
9085# V8 torque is an exception from this policy, see v8 BUILD.gn.
9186build:unix --per_file_copt=external/v8/src/torque@-fexceptions
92- build:windows --per_file_copt=external/v8/src/torque@/GX
87+ build:windows --per_file_copt=external/v8/src/torque@/clang:-fexceptions
9388
9489# Disable relaxing all jumps during LLVM codegen under -O0, which previously led to build
9590# performance improvements but makes code size worse. This will be the default in LLVM19.
@@ -215,11 +210,9 @@ build:unix --cxxopt='-Wextra' --host_cxxopt='-Wextra'
215210build:unix --cxxopt='-Wunused-function' --host_cxxopt='-Wunused-function'
216211build:unix --cxxopt='-Wunused-lambda-capture' --host_cxxopt='-Wunused-lambda-capture'
217212build:unix --cxxopt='-Wunused-variable' --host_cxxopt='-Wunused-variable'
218- build:unix --cxxopt='-Wno-strict-aliasing' --host_cxxopt='-Wno-strict-aliasing'
219213build:unix --cxxopt='-Wno-sign-compare' --host_cxxopt='-Wno-sign-compare'
220214build:unix --cxxopt='-Wno-unused-parameter' --host_cxxopt='-Wno-unused-parameter'
221215build:unix --cxxopt='-Wno-missing-field-initializers' --host_cxxopt='-Wno-missing-field-initializers'
222- build:unix --cxxopt='-Wno-ignored-qualifiers' --host_cxxopt='-Wno-ignored-qualifiers'
223216build:unix --cxxopt='-Wsuggest-override'
224217
225218build:linux --config=unix
@@ -277,9 +270,6 @@ build:linux --copt="-fdata-sections" --host_copt="-fdata-sections"
277270# On Linux, use clang lld.
278271build:linux --linkopt="-fuse-ld=lld"
279272
280- # Disable LLVM 20 warning about unused cli argument "-c".
281- build:linux --copt='-Wno-unused-command-line-argument' --copt='-Wno-unknown-warning-option' --host_copt='-Wno-unused-command-line-argument' --host_copt='-Wno-unknown-warning-option'
282-
283273#
284274# Windows
285275#
@@ -308,7 +298,6 @@ build:windows --extra_execution_platforms=//:x64_windows-clang-cl
308298# workaround.
309299
310300build:windows_no_dbg -c opt
311- build:windows_no_dbg --copt='-O0'
312301build:windows_no_dbg --copt='/Od'
313302build:windows_no_dbg --linkopt='/INCREMENTAL:NO'
314303build:windows_no_dbg --features=-smaller_binary
@@ -381,10 +370,9 @@ build:release_windows --per_file_copt=.*capnp/rpc\.c++@/clang:-O1
381370build:windows --cxxopt='/std:c++23preview' --host_cxxopt='/std:c++23preview'
382371build:windows --copt='/D_CRT_USE_BUILTIN_OFFSETOF' --host_copt='/D_CRT_USE_BUILTIN_OFFSETOF'
383372build:windows --copt='/DWIN32_LEAN_AND_MEAN' --host_copt='/DWIN32_LEAN_AND_MEAN'
384- build:windows --copt='-Wno-microsoft-unqualified-friend' --host_copt='-Wno-microsoft-unqualified-friend'
385373# The `/std:c++23preview` argument is unused during BoringSSL compilation and we don't
386374# want a warning when compiling each file.
387- build:windows --copt=' -Wno-unused-command-line-argument' --host_copt=' -Wno-unused-command-line-argument'
375+ build:windows --per_file_copt=external/ssl@ -Wno-unused-command-line-argument --host_per_file_copt=external/ssl@ -Wno-unused-command-line-argument
388376
389377# MSVC disappointingly sets __cplusplus to 199711L by default. Defining /Zc:__cplusplus makes it
390378# set the correct value. We currently don't check __cplusplus, but some dependencies do.
0 commit comments