Since we now have a ‘Kaleidoscope Internals’ category, I figured I’d ask this here.
On every build (through IDE or on command line), everything is completely rebuilt, regardless of whether anything has changed since it’s last been compiled. Sketch is rebuilt, all plugins are rebuilt, even the Arduino core (which very, very rarely changes, especially for real-hardware builds) is rebuilt. Even typing make
, waiting for it to complete, and then immediately typing make
again triggers a full rebuild, even though nothing has changed.
- Is this a behavior that just comes with using
arduino-builder
? (I don’t think so - for most projects, I think Arduino normally tries to not recompile libraries and core unless necessary - but I could be wrong) - If this behavior is a feature of
kaleidoscope-builder
, or more broadly our build system in general, can anyone point me to where in the code or config files is causing this? - Is this a desired feature? If so, why? Or if it’s not a desired feature, I’m interested in fixing this. It would help build times a ton - for instance if you only changed your sketch file, not having to rebuild all the plugins and the Arduino core would save so much time. It also would speed up future regression testing (see Regression testing & build system) by probably at least 10x.