Flags for optmized build

373 views
Skip to first unread message

Obaid Ur Rehman

unread,
Jun 16, 2022, 8:01:18 PM6/16/22
to Chromium-dev
I have build Chromium 100.0.4896.127 from source code and was wondering which list of flags should I use to build the most optimized version of Chromium?
Here is my list of args
build_with_tflite_lib=false
clang_use_chrome_plugins=false
disable_fieldtrial_testing_config=true
enable_hangout_services_extension=false
enable_js_type_check=false
enable_mdns=false
enable_mse_mpeg2ts_stream_parser=true
enable_reading_list=false
enable_remoting=false
enable_reporting=false
enable_service_discovery=false
enable_widevine=true
exclude_unwind_tables=true
google_api_key=""
google_default_client_id=""
google_default_client_secret=""
treat_warnings_as_errors=false
chrome_pgo_phase=0
enable_swiftshader=false
ffmpeg_branding="Chrome"
is_clang=true
is_debug=false
proprietary_codecs=true
target_cpu="x64"
use_gnome_keyring=false
use_sysroot=false
dcheck_always_on=false
is_official_build=true

Nico Weber

unread,
Jun 16, 2022, 9:00:14 PM6/16/22
to obaid...@gmail.com, Chromium-dev
The important one is `is_official_build=true`, which you already set.

Stop setting `chrome_pgo_phase=0` -- specifying it disables one of the optimizations we do in official builds.

You don't need to set

is_clang=true
is_debug=false
target_cpu="x64"
dcheck_always_on=false

since they're all set by default or implied by is_official_build (but explicitly setting them doesn't hurt; it's just redundant).

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/3160749a-cfee-4d54-aaee-8a5986cf90fen%40chromium.org.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages