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

Use Og for debug compiling #237

Merged
merged 1 commit into from
Feb 11, 2025
Merged

Use Og for debug compiling #237

merged 1 commit into from
Feb 11, 2025

Conversation

emlowe
Copy link
Contributor

@emlowe emlowe commented Feb 5, 2025

Per recommendation from Arvid, debug builds are useful with -Og as this allows some optimizations but only those that don't interfere with debugging. (Note Cmake will add in -g for us already)

@emlowe emlowe requested review from arvidn and AmineKhaldi February 5, 2025 17:45
Copy link
Contributor

@arvidn arvidn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

msvc has a similar option /Ob1 ( https://learn.microsoft.com/en-us/cpp/build/reference/ob-inline-function-expansion?view=msvc-170 )
But we probably don't care

@emlowe emlowe merged commit 8902eb9 into main Feb 11, 2025
55 checks passed
@emlowe emlowe deleted the EL.debug-compile-options branch February 11, 2025 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants