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

[Build/CI] set CMAKE_BUILD_TYPE=release on wheel build #4941

Closed

Conversation

dtrifiro
Copy link
Contributor

@dtrifiro dtrifiro commented May 21, 2024

This builds the Extensions with -DCMAKE_BUILD_TYPE=Release, which enables optimizations and disables debugging symbols in the generated build files. This results in faster smaller and more efficient artifacts.

Thanks @z103cb @RH-steve-grubb

@dtrifiro dtrifiro changed the title gha: set CMAKE_BUILD_TYPE=release on wheel build [Build/CI] set CMAKE_BUILD_TYPE=release on wheel build May 21, 2024
@dtrifiro dtrifiro force-pushed the build-wheels-with-cmake-release branch from d3c9097 to 60f0129 Compare May 21, 2024 10:13
This builds the Extensions with `-DCMAKE_BUILD_TYPE=Release`, which enables optimizations and disables
debugging symbols in the generated build files. This results in a faster and more efficient executable.
Comment on lines 85 to 86
env:
CMAKE_BUILD_TYPE: Release # do not compile with debug symbol to reduce wheel size
Copy link
Sponsor Collaborator

Choose a reason for hiding this comment

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

Why does this not satisfy the same requirement? We should decide on one way to specify this environment variable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually that's a good point, I did not see #4602 and I looked at the binaries generated in the 0.4.2 release. Closing this as it's a duplicate. Thanks

@dtrifiro dtrifiro closed this May 21, 2024
@dtrifiro dtrifiro deleted the build-wheels-with-cmake-release branch May 21, 2024 10:47
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