Reuse (cache) object archives in large sketch projects (#2464)
* Reuse archiveCompiledFiles helper for long commandline shrink
Since archiveCompiledFiles already handles hot cache correctly, this avoids objs.a being rebuilt even if files don't change.
Would be ideal if PathList could expose a generic Filter API (to get rid of the "duplicated" filter)
* Upgrade go-paths / remove duplicate filter function
* Consider existing archives during the build
* Simplified archiveCompiledFiles function signature
It doesn't make sense anymore to keep path and filename separated.
* Added integration test
---------
Co-authored-by: Cristian Maglie <c.maglie@arduino.cc>
Showing
... | ... | @@ -7,7 +7,7 @@ replace github.com/mailru/easyjson => github.com/cmaglie/easyjson v0.8.1 |
require ( | ||
github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 | ||
github.com/arduino/go-paths-helper v1.9.2 | ||
github.com/arduino/go-paths-helper v1.11.0 | ||
github.com/arduino/go-properties-orderedmap v1.8.0 | ||
github.com/arduino/go-timeutils v0.0.0-20171220113728-d1dd9e313b1b | ||
github.com/arduino/go-win32-utils v1.0.0 | ||
... | ... |
Please register or sign in to comment