sandbox needs to be built with --param lto-partitions=1 when GCC LTO is enabled
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
People
(Reporter: jh, Assigned: stransky)
References
Details
Attachments
(1 file, 1 obsolete file)
682 bytes,
patch
|
Details | Diff | Splinter Review |
Comment 1•6 years ago
|
||
Updated•6 years ago
|
Reporter | ||
Comment 2•6 years ago
|
||
Updated•6 years ago
|
Comment 4•4 years ago
|
||
Thaodan,
The variant with checking OS_CXXFLAGS and f.startswith is more robast:
for f in CONFIG['OS_CXXFLAGS']:
if f.startswith('-flto') and CONFIG['CC_TYPE'] != 'clang':
LDFLAGS += ['--param', 'lto-partitions=1']
Linux distro can use its "own way" for compiler options, thus "-flto" can appear even when MOZ_LTO is not set...
Comment 5•4 years ago
|
||
Martin,
Since Fedora uses this patch (because of gcc+lto), could you please promote it a bit here?
(The patch is needed for SeaMonkey as well, when it will reach lto stage too).
Assignee | ||
Comment 6•4 years ago
|
||
(In reply to Dmitry Butskoy from comment #5)
Martin,
Since Fedora uses this patch (because of gcc+lto), could you please promote it a bit here?
(The patch is needed for SeaMonkey as well, when it will reach lto stage too).
The patches here are incomplete/obsoleted. see Bug 1601903 for details how gcc profile data are different than a clang ones.
Please take the PGO patches from Firefox package we ship for Fedora:
https://src.fedoraproject.org/rpms/firefox/blob/master/f/pgo.patch
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Description
•