2025-05-10 21:49:39 +08:00

32 lines
1.3 KiB
Diff

From e264d70626cddc047967d5a1cab7758c0f584a48 Mon Sep 17 00:00:00 2001
From: Randy MacLeod <Randy.MacLeod@windriver.com>
Date: Mon, 16 Jan 2023 22:11:58 -0500
Subject: [PATCH] drop -gsimple-template-names
Upstream-Status: Inappropriate clang-12 only.
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
---
build/config/compiler/BUILD.gn | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 6de8875a45eee..196a9c3c5a991 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -825,9 +825,11 @@ config("compiler") {
# lldb doesn't have the needed changes yet.
# * Fuchsia isn't supported as zxdb doesn't support simple template names yet.
# TODO(crbug.com/1379070): Remove if the upstream default ever changes.
- if (is_clang && !is_nacl && !is_win && !is_apple && !is_fuchsia) {
- cflags_cc += [ "-gsimple-template-names" ]
- }
+ # Drop for 109 due to dunfell:
+ # clang-12: error: unknown argument: '-gsimple-template-names'
+ #if (is_clang && !is_nacl && !is_win && !is_apple && !is_fuchsia) {
+ # cflags_cc += [ "-gsimple-template-names" ]
+ #}
# MLGO specific flags. These flags enable an ML-based inliner trained on
# Chrome on Android (arm32) with ThinLTO enabled, optimizing for size.