Open
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
release
profile. - Optimise for failure: … with the
debug
profile. - Optimise for control: … with a new
build
profile, configured in the project'sCargo.toml
like the others (and choose defaults from the above, I guess).
Thoughts?