-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
A-build-dependenciesArea: [build-dependencies]Area: [build-dependencies]A-profilesArea: profilesArea: profilesS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Description
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
releaseprofile. - Optimise for failure: … with the
debugprofile. - Optimise for control: … with a new
buildprofile, configured in the project'sCargo.tomllike the others (and choose defaults from the above, I guess).
Thoughts?
Metadata
Metadata
Assignees
Labels
A-build-dependenciesArea: [build-dependencies]Area: [build-dependencies]A-profilesArea: profilesArea: profilesS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.