Skip to content

Single profile for build dependencies #1774

Open
@jdub

Description

@jdub

I've just noticed that build dependencies are currently rebuilt for each profile (or at least debug and release, I haven't noticed what happens for the others).

That's fine for a little build helper like gcc, but painful for bindgen (mainly due to syntex_syntax build time).

Are there circumstances in which the build dependency build profile is relevant to the main project build? I could very well be missing something here.

If it's never relevant, then having to rebuild all your build dependencies for each profile is a (minor) pain.

Potential solutions:

Only build the build dependencies once…

  • Optimise for performance: … with the release profile.
  • Optimise for failure: … with the debug profile.
  • Optimise for control: … with a new build profile, configured in the project's Cargo.toml like the others (and choose defaults from the above, I guess).

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-build-dependenciesArea: [build-dependencies]A-profilesArea: profilesS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions