Skip to content

CMake: Allow setting optimization remark type #79679

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

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

etcwilde
Copy link
Member

Optimization remarks were always emitted on Darwin but not on the other platforms and were forced to use the bitstream format. Adding a flag to enable or disable them as desired and specify the desired output format.
These had been hard-coded to bitstream for all platforms the old build system, regardless of whether folks were using them.

Fixes: #79279

@etcwilde
Copy link
Member Author

@swift-ci please smoke test

Optimization remarks were always emitted on Darwin but not on the other
platforms and were forced to use the bitstream format. Adding a flag to
enable or disable them as desired and specify the desired output format.

Fixes: swiftlang#79279
@etcwilde
Copy link
Member Author

@swift-ci please smoke test

@etcwilde etcwilde merged commit 5ca72f9 into swiftlang:main Feb 28, 2025
3 checks passed
@etcwilde etcwilde deleted the ewilde/opt-remarks branch February 28, 2025 18:12
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.

Runtimes: evaluate extending usages of -save-optimization-record=bitstream to all platforms
2 participants