Move -g3 from build_flags to build_src_flags#826
Open
zackees wants to merge 1 commit intoPlummersSoftwareLLC:mainfrom
Open
Move -g3 from build_flags to build_src_flags#826zackees wants to merge 1 commit intoPlummersSoftwareLLC:mainfrom
zackees wants to merge 1 commit intoPlummersSoftwareLLC:mainfrom
Conversation
-g3 in build_flags applies maximum debug info (including all macro definitions) to every translation unit — the ESP32 Arduino core, all libraries, and the sketch. This significantly slows compilation and bloats object files for no benefit in release builds. Move it to build_src_flags so only sketch sources get full debug info, while core and library compilation stays fast. Fixes PlummersSoftwareLLC#825 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
-g3from[base] build_flagsso the ESP32 core and all libraries no longer compile with maximum debug info-g3tobuild_src_flagsso sketch sources still get full macro debug info for debuggingFixes #825
Test plan
pio run -e democompiles successfullyreadelf --debug-dump=macro)🤖 Generated with Claude Code