Skip to content

klipper: add -O2 to CXXFLAGS so simulavr builds optimised#294

Closed
andersevenrud wants to merge 1 commit into
mkuf:mainfrom
andersevenrud:klipper/optimization-flags
Closed

klipper: add -O2 to CXXFLAGS so simulavr builds optimised#294
andersevenrud wants to merge 1 commit into
mkuf:mainfrom
andersevenrud:klipper/optimization-flags

Conversation

@andersevenrud

@andersevenrud andersevenrud commented Jul 25, 2026

Copy link
Copy Markdown

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

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
andersevenrud force-pushed the klipper/optimization-flags branch from b52b951 to f31face Compare July 25, 2026 22:15
@andersevenrud

This comment was marked as outdated.

@andersevenrud

andersevenrud commented Jul 26, 2026

Copy link
Copy Markdown
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
andersevenrud marked this pull request as draft July 26, 2026 01:05
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.

Cannot get MCU connection with simulavr

1 participant