diff options
author | Martin Stransky <stransky@redhat.com> | 2019-01-03 15:35:59 +0100 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2019-01-03 15:35:59 +0100 |
commit | 8fe69a3fb34945f94999bfe6c2d06385cbf0ab19 (patch) | |
tree | a839bdd5557a73d2bed66f0524d199898f184f50 /mozilla-1516803.patch | |
parent | PGO build test (diff) | |
download | librewolf-fedora-ff-8fe69a3fb34945f94999bfe6c2d06385cbf0ab19.tar.gz librewolf-fedora-ff-8fe69a3fb34945f94999bfe6c2d06385cbf0ab19.tar.bz2 librewolf-fedora-ff-8fe69a3fb34945f94999bfe6c2d06385cbf0ab19.zip |
Updated PGO/LTO setup
Diffstat (limited to 'mozilla-1516803.patch')
-rw-r--r-- | mozilla-1516803.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mozilla-1516803.patch b/mozilla-1516803.patch new file mode 100644 index 0000000..f1f37f4 --- /dev/null +++ b/mozilla-1516803.patch @@ -0,0 +1,16 @@ +diff --git a/security/sandbox/linux/moz.build b/security/sandbox/linux/moz.build +--- a/security/sandbox/linux/moz.build ++++ b/security/sandbox/linux/moz.build +@@ -99,9 +99,8 @@ + # 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() + |