You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Symlinked local library not rebuilt after its sources change (stale objects without --clean) #1753
A library reached through a symlink (<proj>/lib/FastLED -> /home/niteris/dev/fastled2) is not rebuilt after its source changes under it with git checkout. The next fbuild deploy (no --clean) ships the old library object code.
Project with lib/FastLED symlinked to a FastLED checkout on master. Run fbuild deploy <proj> -e c6.
In the FastLED checkout, git checkout a branch that rewrites src/platforms/esp/32/core/fastspi_esp32_idf.h (FastLED#4919: about 340 changed lines; it adds spi_device_queue_trans).
Run fbuild deploy <proj> -e c6 again.
Observed: the firmware's measured behavior was byte-for-byte identical between the two branches. Checking out master again and redeploying also gave identical output.
With --clean: the two branches differed as expected. 256 APA102 LEDs took 19,081 µs per frame on master and 560 µs on the PR.
The changed file is a header that .cpp.hpp unity files include. It is also possible the freshness check keys on the symlink's own mtime or path instead of the target files.
Expected
A change to any file under a local library, symlinked or not, including headers reached only through #include, invalidates that library's objects.
The existing test test_plan_compiles_concurrently_and_recompiles_edited_local_library passes, so it probably edits a .cpp, not a header pulled in transitively, or doesn't go through a symlink.
Activity