Skip to content

Conversation

@radarhere
Copy link
Member

@radarhere
Copy link
Member Author

https://github.com/harfbuzz/harfbuzz/blob/main/CONFIG.md

Make sure you build with your compiler's "optimize for size" option. On gcc this is -Os, and can be enabled by passing CXXFLAGS=-Os. On clang there is an even more extreme flag, -Oz. Meson also provides --buildtype=minsize for more convenience.

I've pushed a commit to change --buildtype=release to --buildtype=minsize.

Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

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

What sort of size difference does it make?

@radarhere
Copy link
Member Author

radarhere commented Apr 18, 2025

The artifacts from Wheels job in the first commit are 321.2mb in total.
The artifacts from Wheels job in the second commit are 304.5mb in total.

@hugovk hugovk merged commit eb03954 into python-pillow:main Apr 18, 2025
69 checks passed
@radarhere radarhere deleted the harfbuzz branch April 18, 2025 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants