Permit PGO for debug builds: allow the use of pgo even in debug builds, since in cromite clang does not crash and the version without pgo is really too slow

This commit is contained in:
Carmelo Messina
2025-05-25 16:36:41 +02:00
parent 8ce1b5f727
commit e1aa94c59e
2 changed files with 22 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@ Do-not-check-for-the-presence-of-use-remoteexec.patch
bromite-build-utils.patch
Add-cromite-flags-support.patch
Force-use-vpython3-for-some-scripts.patch
Permit-PGO-for-debug-builds.patch
Fix-chromium-vanilla.patch
Final-patch-for-chromium-vanilla.patch
@@ -0,0 +1,21 @@
From: uazo <uazo@users.noreply.github.com>
Date: Sun, 25 May 2025 12:42:26 +0000
Subject: Permit PGO for debug builds
License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
---
build/config/compiler/pgo/pgo.gni | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/build/config/compiler/pgo/pgo.gni b/build/config/compiler/pgo/pgo.gni
--- a/build/config/compiler/pgo/pgo.gni
+++ b/build/config/compiler/pgo/pgo.gni
@@ -43,5 +43,5 @@ declare_args() {
# TODO(crbug.com/409738601): Remove assert once clang no
# longer crashes with PGO enabled for a debug build.
-assert(!is_debug || chrome_pgo_phase == 0,
- "Cannot have a debug build optimized with PGO")
+# assert(!is_debug || chrome_pgo_phase == 0,
+# "Cannot have a debug build optimized with PGO")
--