Repository navigation
fix(esp32): honor LTO flags and refresh cached archives - #1865
Merged
Merged
Conversation
Require local framework archives to match the full content-addressed cache identity before reuse. Invalidate legacy or mismatched outputs, publish hydration identity atomically, and abort on invalidation failures. Fixes #1863
Filter SDK ld_flags before LTO profile policy and linker construction, in both the metadata fast path and the full build. This lets explicit -fno-lto removals actually enable the GCC linker plugin. Fixes #1862. Coordinated with FastLED/FastLED#4994.
Publish the ESP32 SDK linker-unflag and local framework-cache fixes needed by FastLED/FastLED#4994.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ESP32 builds requesting LTO still linked the SDK's
-fno-lto, which prevents GCC from loading its LTO plugin even when-fltofollows it. Applybuild_unflagsto SDK linker flags before profile selection and linker construction. Also validate local framework archives against the complete cache identity so changing LTO flags cannot reuse incompatible objects; hydration failures now stop before stale archives are accepted.Bump the Rust workspace, lockfile, and Python package to 2.5.50 for the downstream FastLED fix.
Validation:
/dev/ttyACM0, Arduino 3.3.5 / ESP-IDF 5.5.1 / GCC 14.2, no LED wiring: the GCC LTO plugin and workers execute. FastLED AutoResearch reproduced two constructions before its fix and one afterward. The no-clean LTO-to-non-LTO control also passed, exercising archive invalidation.soldr --no-cacheto avoid shared broker contention; the product's framework-cache regression tests remained active.Fixes #1862.
Fixes #1863.
Coordinated with FastLED/FastLED#4994; the dependency lands and publishes before the consumer PR.
Consumer integration: FastLED/FastLED#5006.
fbuild 2.5.50 is published from commit
9c0dd1bcaa38de3ac6d67c86cca202a0b4677e6c: the exact-SHA full release dry-run and publication workflow passed, and all five PyPI wheels were verified. The consumer installed that published package and passed fresh ESP32-C6 hardware acceptance with LTO after a clean build and full flash, then without LTO using no clean and a full flash. Both runs completed two contending tasks, proved overlap, and constructed the local static exactly once. All 456 consumer Python tests also passed with the released package.