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:
@@ -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")
|
||||
--
|
||||
Reference in New Issue
Block a user