Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define the compiler.optimization_flags allows for specifying the desired optimization level during compilation. #238

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

aentinger
Copy link
Contributor

This fixes #230 .

This change can be verified by examining the verbose compilation output (-v) when compiling a sketch with (--optimize-for-debug) and without optimization for debug turned on.

arduino-cli compile -b arduino-git:renesas:unor4wifi -v MySketch --optimize-for-debug
arduino-cli compile -b arduino-git:renesas:unor4wifi -v MySketch

-Og provides "a reasonable level of optimization while maintaining fast compilation and a good debugging experience".
@aentinger aentinger added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jan 12, 2024
@aentinger aentinger requested a review from facchinm January 12, 2024 10:11
@aentinger aentinger self-assigned this Jan 12, 2024
@aentinger aentinger merged commit bba294b into main Jan 15, 2024
13 checks passed
@aentinger aentinger deleted the fix-230 branch January 15, 2024 05:44
@aentinger aentinger restored the fix-230 branch January 15, 2024 05:44
@aentinger aentinger deleted the fix-230 branch January 15, 2024 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize for Debugging compiles with -0s
1 participant