summaryrefslogtreecommitdiff
path: root/arc4_enable-pgo-for-gcc.patch
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2020-09-26 00:00:17 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2020-09-26 00:00:17 -0700
commit580f5d0e1d053d10b92d5375469724ede7a37846 (patch)
tree699176025046f3277b2862b97da2ddfb30e161f5 /arc4_enable-pgo-for-gcc.patch
parentUpdated to 80.0 (diff)
downloadfirefox-580f5d0e1d053d10b92d5375469724ede7a37846.tar.xz
Updated to 81.0-2
Some test code for pgo
Diffstat (limited to 'arc4_enable-pgo-for-gcc.patch')
-rw-r--r--arc4_enable-pgo-for-gcc.patch25
1 files changed, 11 insertions, 14 deletions
diff --git a/arc4_enable-pgo-for-gcc.patch b/arc4_enable-pgo-for-gcc.patch
index 9f149e8..d2d0415 100644
--- a/arc4_enable-pgo-for-gcc.patch
+++ b/arc4_enable-pgo-for-gcc.patch
@@ -1,15 +1,12 @@
---- a/security/sandbox/linux/moz.build
-+++ b/security/sandbox/linux/moz.build
-@@ -99,9 +99,8 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc')
- # gcc lto likes to put the top level asm in syscall.cc in a different partition
- # from the function using it which breaks the build. Work around that by
- # forcing there to be only one partition.
--for f in CONFIG['OS_CXXFLAGS']:
-- if f.startswith('-flto') and CONFIG['CC_TYPE'] != 'clang':
-- LDFLAGS += ['--param lto-partitions=1']
-+if CONFIG['CC_TYPE'] != 'clang':
-+ LDFLAGS += ['--param', 'lto-partitions=1']
-
- DEFINES['NS_NO_XPCOM'] = True
- DisableStlWrapping()
+--- a/build/moz.configure/lto-pgo.configure
++++ b/build/moz.configure/lto-pgo.configure
+@@ -135,9 +135,6 @@
+ if not want_cross:
+ return
+- if c_compiler.type == 'gcc':
+- die('Cannot use cross-language PGO with GCC.')
+-
+ return True
+
+ set_config('MOZ_PGO_RUST', moz_pgo_rust)