Fix GCC build.

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/63406
Change-Id: I3bb3963fcc182777c5d2c0e062ae4bbf3c5aae75
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/504800
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
Ryan Macnak
2026-05-20 08:21:30 -07:00
committed by dart-scoped@luci-project-accounts.iam.gserviceaccount.com
parent 5f2c7f7ef0
commit b2911c0bf1
7 changed files with 43 additions and 21 deletions
+7 -2
View File
@@ -130,8 +130,8 @@ config("compiler") {
cflags += [ "-fsanitize=address" ]
if (is_win) {
# Windows directly calls link.exe instead of the compiler driver when
# linking. Hence, pass the runtime libraries instead of -fsanitize=address
# or -fsanitize=fuzzer.
# linking. Hence, pass the runtime libraries instead of
# -fsanitize=address or -fsanitize=fuzzer.
_clang_lib_dir =
"//buildtools/win-x64/clang/lib/clang/23/lib/x86_64-pc-windows-msvc"
libs = [ "$_clang_lib_dir/clang_rt.asan_dynamic.lib" ]
@@ -688,6 +688,11 @@ if (is_win) {
default_warning_flags += [
"-Wno-ignored-qualifiers", # Warnings in BoringSSL headers
]
if (is_tsan && current_cpu == "riscv64") {
default_warning_flags += [
"-Wno-tsan", # Use of std::atomic_thread_fence in the STL.
]
}
}
if (is_mac || is_ios) {