The size of the chromium executable file

78 views
Skip to first unread message

pp wang

unread,
May 15, 2017, 10:10:58 PM5/15/17
to Chromium-dev
I build chromium on linux, this is the build arguments:
  is_debug = false
  is_component_ffmpeg = false
  target_cpu = "x64"
  ffmpeg_branding = "Chrome"
  proprietary_codecs = true


When I striped, the size of executable is 121M, but the google chrome is 113M, why?

Tom Anderson

unread,
May 15, 2017, 10:43:23 PM5/15/17
to wpp...@gmail.com, Chromium-dev
I'd guess it's because of link time optimization.  A normal release build doesn't have LTO, but an official build (is_official_build=true) does.  I think you can enable LTO without doing an official build by setting allow_posix_link_time_opt=true, but be warned that linking will be very slow (hours).

--
--
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+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/230b0825-61f7-4248-82c0-4aca68583671%40chromium.org.

Torne (Richard Coles)

unread,
May 16, 2017, 10:55:36 AM5/16/17
to thomasa...@google.com, wpp...@gmail.com, Chromium-dev
You should just be able to set is_official_build=true if you're doing a build you intend to be used by end users;.

On Mon, 15 May 2017 at 22:42 'Tom Anderson' via Chromium-dev <chromi...@chromium.org> wrote:
I'd guess it's because of link time optimization.  A normal release build doesn't have LTO, but an official build (is_official_build=true) does.  I think you can enable LTO without doing an official build by setting allow_posix_link_time_opt=true, but be warned that linking will be very slow (hours).

On Mon, May 15, 2017 at 7:10 PM, pp wang <wpp...@gmail.com> wrote:
I build chromium on linux, this is the build arguments:
  is_debug = false
  is_component_ffmpeg = false
  target_cpu = "x64"
  ffmpeg_branding = "Chrome"
  proprietary_codecs = true


When I striped, the size of executable is 121M, but the google chrome is 113M, why?

--
--
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.
--
--
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.
Reply all
Reply to author
Forward
0 new messages