chrome release build flag?

1,732 views
Skip to first unread message

Huapeng Li

unread,
Mar 22, 2017, 5:28:50 PM3/22/17
to Chromium-dev
Hi,
Are there any ways to check what GN build flags Chrome(not Chromium) release build uses?
We recently had a problem not setting "fieldtrial_testing_like_official_build". We would like to know what Chrome is using.

Thanks

Lei Zhang

unread,
Mar 22, 2017, 5:38:54 PM3/22/17
to matth...@gmail.com, Chromium-dev
In build/config/features.gni, the one and only assignment to that variable is:

fieldtrial_testing_like_official_build = is_chrome_branded

So Chrome sets that to true.

For context, I think you are referring to the problem mentioned here:
https://groups.google.com/a/chromium.org/d/topic/chromium-packagers/ECWC57W7E0k/discussion
> --
> --
> 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 view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/e38c2727-70a2-477e-8644-5c077ab3d905%40chromium.org.

Dirk Pranke

unread,
Mar 22, 2017, 7:34:48 PM3/22/17
to Lei Zhang, matth...@gmail.com, Chromium-dev
Also, literally the only GN flag that we set on official builds (on desktop) is `is_official_build=true` :). Everything else keys off of that.

We don't make the actual official build logs public, but the configuration that they use is, set here:


iOS and Android official builds actually have a few more flags that can't be keyed off a default, like setting target_os, target_cpu, etc.

-- Dirk



Torne (Richard Coles)

unread,
Mar 23, 2017, 5:38:00 PM3/23/17
to dpr...@chromium.org, Lei Zhang, matth...@gmail.com, Chromium-dev
If you're making an end user build you probably should just set is_official_build=true as well. This is supposed to include all optimisations/etc suitable for end users, and shouldn't include Chrome-specific stuff (which is supposed to be based on is_chrome_branded).

Jens Jensen

unread,
Feb 16, 2018, 1:23:09 PM2/16/18
to Chromium-dev, the...@chromium.org, matth...@gmail.com

Hey Dirk,

is it correct that is_official_build=true shouldn't be used for mobile/Android builds?

Dirk Pranke

unread,
Feb 16, 2018, 1:31:21 PM2/16/18
to wangenh...@gmail.com, Chromium-dev, Lei Zhang, Huapeng Li
Not as far as I know. What made you think that?

-- Dirk

Jens Jensen

unread,
Feb 18, 2018, 7:21:22 AM2/18/18
to Chromium-dev, wangenh...@gmail.com, the...@chromium.org, matth...@gmail.com
Dirk, because it sounds like in one of your older answers:
Also, literally the only GN flag that we set on official builds (on desktop) is `is_official_build=true`

But now, when I read it again, it could also be interpreted differently. So you also set is_official_build=true for release builds for Android?

Dirk Pranke

unread,
Feb 20, 2018, 5:42:29 PM2/20/18
to Jens Jensen, Chromium-dev, Lei Zhang, Huapeng Li
On Sun, Feb 18, 2018 at 4:21 AM, Jens Jensen <wangenh...@gmail.com> wrote:
Dirk, because it sounds like in one of your older answers:
Also, literally the only GN flag that we set on official builds (on desktop) is `is_official_build=true`

But now, when I read it again, it could also be interpreted differently. So you also set is_official_build=true for release builds for Android?

Yes. Sorry for any confusion.

-- Dirk
 

Torne (Richard Coles)

unread,
Feb 20, 2018, 6:05:30 PM2/20/18
to dpr...@chromium.org, Jens Jensen, Chromium-dev, Lei Zhang, Huapeng Li
You should set is_official_build=true for all builds that you intend to be used by users, no matter what OS/platform/etc. "official build" here is supposed to mean "as opposed to a developer build", not anything to do with Google/Chrome/etc.

Reply all
Reply to author
Forward
0 new messages