mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add support for PGO builds (fixes issue #2956)
This configuration applies to Official Release builds only. Chromium currently provides PGO profiles for Windows x86/x64, MacOS x64/ARM64 and Linux x64. Official builds for these platforms must run automate-git.py with the `--with-pgo-profiles` command-line flag. Official builds for other platforms must disable PGO builds by adding `chrome_pgo_phase=0` to GN_DEFINES.
This commit is contained in:
@ -809,6 +809,12 @@ parser.add_option(
|
||||
dest='arm64build',
|
||||
default=False,
|
||||
help='Create an ARM64 build.')
|
||||
parser.add_option(
|
||||
'--with-pgo-profiles',
|
||||
action='store_true',
|
||||
dest='withpgoprofiles',
|
||||
default=False,
|
||||
help='Download PGO profiles for the build.')
|
||||
|
||||
# Test-related options.
|
||||
parser.add_option(
|
||||
@ -1261,6 +1267,9 @@ if not os.path.exists(gclient_file) or options.forceconfig:
|
||||
"'managed': False,"+\
|
||||
"'name': 'src', "+\
|
||||
"'url': '" + chromium_url + "', "+\
|
||||
"'custom_vars': {"+\
|
||||
"'checkout_pgo_profiles': " + ('True' if options.withpgoprofiles else 'False') + ", "+\
|
||||
"}, "+\
|
||||
"'custom_deps': {"+\
|
||||
"'build': None, "+\
|
||||
"'build/scripts/command_wrapper/bin': None, "+\
|
||||
|
Reference in New Issue
Block a user