Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit e1aa94c5 authored by Carmelo Messina's avatar Carmelo Messina
Browse files

Permit PGO for debug builds: allow the use of pgo even in debug builds, since...

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
parent 8ce1b5f7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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

+21 −0
Original line number Diff line number Diff line
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")
--