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

Commits on Mar 20, 2024

  1. Enable -flto, -sEVAL_CTORS=1

    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
    WeebDataHoarder authored and dmitrylyzo committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    e9b67a2 View commit details
    Browse the repository at this point in the history
  2. Set -s AUTONATIVE_LIBRARIES=0

    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
    WeebDataHoarder authored and dmitrylyzo committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    1631158 View commit details
    Browse the repository at this point in the history