Skip to content

[ATfL] Make sure the bootstrap compiler is being built with -O2, not -O3#607

Merged
pawosm-arm merged 1 commit intoarm-softwarefrom
users/pawosm-arm/atfl-bootstrap-O2
Oct 28, 2025
Merged

[ATfL] Make sure the bootstrap compiler is being built with -O2, not -O3#607
pawosm-arm merged 1 commit intoarm-softwarefrom
users/pawosm-arm/atfl-bootstrap-O2

Conversation

@pawosm-arm
Copy link
Contributor

According to CMake default settings:

CMAKE_ASM_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

CMAKE_ASM_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

As we want the bootstrap compiler to be stablest possible, we'd rather build it at O2 than O3 optimization level.

According to CMake default settings:

CMAKE_ASM_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

CMAKE_ASM_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

As we want the bootstrap compiler to be stablest possible,
we'd rather build it at O2 than O3 optimization level.
@pawosm-arm
Copy link
Contributor Author

ping...?

Copy link
Contributor

@garyjcarroll garyjcarroll left a comment

Choose a reason for hiding this comment

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

Seem reasonable to me. I'll approve to unblock things.

@pawosm-arm pawosm-arm merged commit 547078f into arm-software Oct 28, 2025
1 check passed
@pawosm-arm pawosm-arm deleted the users/pawosm-arm/atfl-bootstrap-O2 branch October 28, 2025 16:30
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.

2 participants