klipper: add -O2 to CXXFLAGS so simulavr builds optimised#294
Closed
andersevenrud wants to merge 1 commit into
Closed
klipper: add -O2 to CXXFLAGS so simulavr builds optimised#294andersevenrud wants to merge 1 commit into
andersevenrud wants to merge 1 commit into
Conversation
CXXFLAGS env variable replaces compilers default optimization flags. This commit adds an explicit optimization flag. Note that this will also propagate all compiled package, but it should not produce any unwanted effects. This helps increase the performance by as much as 7x on a machine that was unable to use simulavr out of the box. Closes mkuf#284
andersevenrud
force-pushed
the
klipper/optimization-flags
branch
from
July 25, 2026 22:15
b52b951 to
f31face
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Author
|
I've been thinking a bit more about this, and I'm not sure this is a good idea after all. It might actually mess with how the simulator works on a much lower level. Gonna have to do a bit more research on this... |
andersevenrud
marked this pull request as draft
July 26, 2026 01:05
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.
CXXFLAGS env variable replaces compilers default optimization flags. This commit adds an explicit optimization flag. Note that this will also propagate all compiled package, but it should not produce any unwanted effects.
This helps increase the performance by as much as 7x on a machine that was unable to use simulavr out of the box.
Closes #284