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' --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -590,7 +590,7 @@ config("compiler") { # Flags for diagnostics. cflags += [ "-fcolor-diagnostics" ] 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" ] --- a/build/config/sanitizers/sanitizers.gni +++ b/build/config/sanitizers/sanitizers.gni @@ -540,7 +540,6 @@ template("ubsan_hardening") { # be usable even in release builds, i.e. as widely as possible. # It's important not to have full-on UBSan workarounds activate # just because we built support for a specific sanitizer. - "-fsanitize-ignore-for-ubsan-feature=${invoker.sanitizer}", ] if (defined(invoker.cflags)) { cflags += invoker.cflags