Fixes are needed to compile using Slackware's llvm 22.x after these llvm 23.x syntax elements were added: clang++: error: unknown argument: '-fdiagnostics-show-inlining-chain' clang++: error: unknown argument: '-fsanitize-ignore-for-ubsan-feature=array-bounds' diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index 7df3e18c4c..1d253318a6 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -578,7 +578,7 @@ config("compiler") { cflags += [ "-fcolor-diagnostics" ] if (!is_wasm) { if (!is_win) { - cflags += [ "-fdiagnostics-show-inlining-chain" ] + cflags += [ ] } else { # Combine after https://github.com/llvm/llvm-project/pull/192241 cflags += [ "/clang:-fdiagnostics-show-inlining-chain" ] @@ -1578,7 +1578,7 @@ config("clang_warning_suppression") { # See also: https://crbug.com/40891132#comment10 ubsan_hardening("c_array_bounds") { sanitizer = "array-bounds" - condition = !(is_asan && target_cpu == "x86") && !is_wasm + condition = false # Because we've enabled array-bounds sanitizing we also want to suppress # the related warning about "unsafe-buffer-usage-in-static-sized-array", @@ -1592,7 +1592,7 @@ ubsan_hardening("c_array_bounds") { # `NOTREACHED()` at the end of such functions. ubsan_hardening("return") { sanitizer = "return" - condition = !is_wasm + condition = false } config("rustc_revision") {