[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chromium-ozone-wayland: Disable Jumbo builds by default. #85

Merged

Conversation

rakuco
Copy link
Collaborator
@rakuco rakuco commented Dec 22, 2017

Whether to use Jumbo builds or not should be up to each user; while it may
decrease build times, it can require more RAM (it tends to cause problems
for me specifically when using GCC because of the amount of memory it
requires).

Additionally, it's not an Ozone-Wayland-specific setting, so it should've
been in chromium-gn.inc had it been the case.

We now provide a PACKAGECONFIG knob (off by default) to control that.

Signed-off-by: Raphael Kubo da Costa raphael.kubo.da.costa@intel.com

@rakuco
Copy link
Collaborator Author
rakuco commented Dec 22, 2017

@msisov @otavio

@schnitzeltony
Copy link
Contributor

Maybe I am wrong here: You write changes are applied in chromium-gn.inc but the patch applies on chromium-ozone-wayland only. What did I miss?

@rakuco
Copy link
Collaborator Author
rakuco commented Dec 22, 2017

I write that, should we decide to pass use_jumbo_build=true to GN, it should have been done in chromium-gn.inc, not the oz-wl .bb recipe file.

@schnitzeltony
Copy link
Contributor

Ahh - not enough coffee...

If you make it common, I promise to play around with it for ..x11 :)

@rakuco
Copy link
Collaborator Author
rakuco commented Dec 22, 2017

Well, the idea is not to touch the setting at all, but allow anyone who'd like to enable it to do so in their own local.conf. That applies to the x11 version too.

If you would like to enable Jumbo builds locally, you can pass additional flags
to GN (in local.conf, for example):

GN_ARGS_append_pn-chromium-x11 = " use_jumbo_build=true"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that this is what happens behind the scene but I think we ought to use the PACKAGECONFIG mechanism to change this as this is the standard way of configuring the package.

Doing so, adding a comment on the recipe before the block adding the config does help.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought PACKAGECONFIG was normally used for knobs which have an effect on the generated package (support for additional features, changes to the build or runtime dependencies).

Jumbo builds only affect the build itself, not what is generated in it.

I'm fine with PACKAGECONFIG, but I wanted to double-check we're not abusing it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is intended to configure the package. It can be for:

  • enabling / disabling a feature
  • change behaviour

In this case, it enables the jumbo build support. Fits well IMO.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough; I've switched to a PACKAGECONFIG knob, please take another look.

Whether to use Jumbo builds or not should be up to each user; while it may
decrease build times, it can require more RAM (it tends to cause problems
for me specifically when using GCC because of the amount of memory it
requires).

Additionally, it's not an Ozone-Wayland-specific setting, so it should've
been in chromium-gn.inc had it been the case.

We now provide a PACKAGECONFIG knob (off by default) to control that.

Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
@rakuco rakuco force-pushed the oz-wl-disable-jumbo-build-by-default branch from a90f126 to 33c3549 Compare December 22, 2017 14:12
@otavio otavio merged commit a7d6464 into OSSystems:master Dec 22, 2017
@rakuco rakuco deleted the oz-wl-disable-jumbo-build-by-default branch December 22, 2017 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants