Build: Add a way of overriding the config for a builder globally

Created on 5 Jan 2018  路  7Comments  路  Source: dart-lang/build

Right now you can only do it per target, but you can imagine plenty of scenarios where a global override would be what you want. For instance switching the dev compiler builder from analyzer mode to kernel mode.

We also want this for the command line flags so we will need the general plumbing regardless I think.

P1 high enhancement

Most helpful comment

As discussed offline:

We also need to explore how this might interact with the --config flag, and whether we should be honoring that flag for build.<config>.yaml files from dependencies. For instance if we want to put together a release and debug mode set of options for build_web_compilers - how can we expose that?

All 7 comments

What should the config approach be other than command line args? Something in build.yaml?

I think it should be something in build.yaml, because people will want to have it be something they can save as a permanent setting as well as overriding on the command line. To that end I would also expect the command line args to take precedence.

We should also probably make the target level config override the global config? I am actually not 100% sure on that though.

As discussed offline:

We also need to explore how this might interact with the --config flag, and whether we should be honoring that flag for build.<config>.yaml files from dependencies. For instance if we want to put together a release and debug mode set of options for build_web_compilers - how can we expose that?

This is coming up again for the module granularity.

We want to push to see if we can avoid it but we're still considering it.

@natebosch this is done now right?

Was this page helpful?
0 / 5 - 0 ratings