diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-02-18 00:07:18 -0800 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-02-18 00:07:18 -0800 |
commit | 63e1622a2b1a54c5f5dfce5f06e63fbc738e2207 (patch) | |
tree | 87f4ad1c59d1f9c7c647a8011d982d9c0f03681d /pgo-1.patch | |
parent | Updatde to 65.0.1 (diff) | |
download | firefox-63e1622a2b1a54c5f5dfce5f06e63fbc738e2207.tar.xz |
Swap back to using gcc | Now with lto and pgo
Diffstat (limited to 'pgo-1.patch')
-rw-r--r-- | pgo-1.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pgo-1.patch b/pgo-1.patch new file mode 100644 index 0000000..9f149e8 --- /dev/null +++ b/pgo-1.patch @@ -0,0 +1,15 @@ +--- 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() + |