2019-11-26 10:08:00 +00:00
|
|
|
diff -up firefox-71.0/build/moz.configure/lto-pgo.configure.1516081 firefox-71.0/build/moz.configure/lto-pgo.configure
|
|
|
|
--- firefox-71.0/build/moz.configure/lto-pgo.configure.1516081 2019-11-26 01:02:19.000000000 +0100
|
|
|
|
+++ firefox-71.0/build/moz.configure/lto-pgo.configure 2019-11-26 11:04:10.993077232 +0100
|
|
|
|
@@ -71,7 +71,7 @@ set_config('PGO_PROFILE_PATH', pgo_profi
|
|
|
|
def pgo_flags(compiler, target, profdata):
|
2019-01-03 14:35:59 +00:00
|
|
|
if compiler.type == 'gcc':
|
|
|
|
return namespace(
|
|
|
|
- gen_cflags=['-fprofile-generate'],
|
|
|
|
+ gen_cflags=['-fprofile-generate', '-DMOZ_PROFILE_INSTRUMENTATION'],
|
|
|
|
gen_ldflags=['-fprofile-generate'],
|
|
|
|
use_cflags=['-fprofile-use', '-fprofile-correction',
|
|
|
|
'-Wcoverage-mismatch'],
|
2019-11-26 10:08:00 +00:00
|
|
|
@@ -92,7 +92,7 @@ def pgo_flags(compiler, target, profdata
|
2019-10-18 18:43:19 +00:00
|
|
|
gen_ldflags = ['-fprofile-generate']
|
2019-01-03 14:35:59 +00:00
|
|
|
|
2019-10-18 18:43:19 +00:00
|
|
|
return namespace(
|
|
|
|
- gen_cflags=[prefix + '-fprofile-generate'],
|
|
|
|
+ gen_cflags=[prefix + '-fprofile-generate', '-DMOZ_PROFILE_INSTRUMENTATION'],
|
|
|
|
gen_ldflags=gen_ldflags,
|
|
|
|
use_cflags=[prefix + '-fprofile-use=%s' % profdata,
|
|
|
|
# Some error messages about mismatched profile data
|