At Whistler, when considering alternate ways of speeding up the build rather than boiling the ocean, one idea I had was using the
bindgen executable nowadays, rather than building all of bindgen (and the
bindgen executable, which contains ridiculously expensive crates to compile, like
clap) and being subject to:
- compiling in debug mode and having bindgen execute slowly; or
- compiling in release mode and waiting for bindgen to compile.
There might not be sufficient support in the
bindgen executable for all the things we do, but we could add all that, and maybe we could even make a few things more efficient (the fixup stuff for stylo does not look super-efficient, for instance).
Does this seem at all reasonable? If we did it for stylo, we'd probably want to do the same thing for cranelift as well.