kalev / rpms / firefox

Forked from rpms/firefox 5 years ago
Clone
8fe69a3
diff -up firefox-64.0/build/unix/mozconfig.unix.pgo firefox-64.0/build/unix/mozconfig.unix
8fe69a3
--- firefox-64.0/build/unix/mozconfig.unix.pgo	2019-01-03 15:23:16.792980384 +0100
8fe69a3
+++ firefox-64.0/build/unix/mozconfig.unix	2019-01-03 15:24:29.978693550 +0100
8fe69a3
@@ -6,6 +6,15 @@ if [ -n "$FORCE_GCC" ]; then
8fe69a3
     CC="$TOOLTOOL_DIR/gcc/bin/gcc"
8fe69a3
     CXX="$TOOLTOOL_DIR/gcc/bin/g++"
8fe69a3
 
8fe69a3
+    if [ -n "$MOZ_PGO" ]; then
8fe69a3
+        if [ -z "$USE_ARTIFACT" ]; then
8fe69a3
+            ac_add_options --enable-lto
8fe69a3
+        fi
8fe69a3
+        export AR="$topsrcdir/gcc/bin/gcc-ar"
8fe69a3
+        export NM="$topsrcdir/gcc/bin/gcc-nm"
8fe69a3
+        export RANLIB="$topsrcdir/gcc/bin/gcc-ranlib"
8fe69a3
+    fi
8fe69a3
+
8fe69a3
     # We want to make sure we use binutils and other binaries in the tooltool
8fe69a3
     # package.
8fe69a3
     mk_add_options "export PATH=$TOOLTOOL_DIR/gcc/bin:$PATH"
8fe69a3
diff -up firefox-64.0/extensions/spellcheck/src/moz.build.pgo firefox-64.0/extensions/spellcheck/src/moz.build
8fe69a3
--- firefox-64.0/extensions/spellcheck/src/moz.build.pgo	2018-12-07 03:56:27.000000000 +0100
8fe69a3
+++ firefox-64.0/extensions/spellcheck/src/moz.build	2019-01-03 15:21:32.793385074 +0100
6cd2d43
@@ -28,3 +28,5 @@ EXPORTS.mozilla += [
6cd2d43
 
6cd2d43
 if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
6cd2d43
     CXXFLAGS += ['-Wno-error=shadow']
6cd2d43
+
6cd2d43
+CXXFLAGS += ['-fno-devirtualize']
6cd2d43
\ No newline at end of file