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

[WeebDataHoarder] Enable LTO, EVAL_CTOR #52

Merged
merged 2 commits into from
Mar 20, 2024
Merged

Conversation

dmitrylyzo
Copy link
Collaborator

@dmitrylyzo dmitrylyzo commented Mar 20, 2024

Pulling from the upstream.
Original author: WeebDataHoarder

libass#145

Changes

Do link-time optimizations and pre-evaluate code.

-s EVAL_CTORS=1 has no change in output currently.
-flto increases output size after optimizations

Cherry-picked from: libass@ae80c98
When -flto is enabled emscripten will generate "system libraries" cache, for all available libraries, including non-used ones.
This includes libGL.a, libal.a, libhtml5.a, which are not used in the project.
Disabling AUTONATIVE_LIBRARIES decreases compile time with -flto enabled.

Cherry-picked from: libass@741d418
@dmitrylyzo dmitrylyzo merged commit cd33894 into jellyfin:master Mar 20, 2024
1 check passed
@dmitrylyzo dmitrylyzo deleted the flto branch March 20, 2024 12:44
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.

None yet

3 participants