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

Support pre-compiled headers and interprocedural/link-time optimisation #2978

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Commits on Jun 16, 2024

  1. Pre-compile headers

    This speeds up builds by 50% to 66% on my machine.
    Semphris committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    3af6466 View commit details
    Browse the repository at this point in the history
  2. Support IPO/LTO

    Release builds are about 15% smaller. Runtime performance untested.
    Semphris committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    89e389b View commit details
    Browse the repository at this point in the history
  3. Make PCH optional

    Semphris committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    1a0f66f View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. Fix build issues

    - `src/ports/emscripten.hpp` lacked an include guard.
    - MSVC probably defines `STRICT` as a macro.
    Semphris committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    aca1350 View commit details
    Browse the repository at this point in the history
  2. Fix more build issues

    - Moved Emscripten implementation from header to .cpp file
    - See if #undef MSVC-specific macro fixes MSVC builds
    - Filter out OpenGL headers on non-HAVE_OPENGL builds
    Semphris committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    390137b View commit details
    Browse the repository at this point in the history
  3. Fix even more build issues

    - The MSVC bug from the parent commit wasn't a macro, apparently
    - Forgot to commit src/port/emscripten.cpp
    - Emscripten doesn't support LTO very well, disable it for now
    Semphris committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    42c777c View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2024

  1. Enable IPO/PCH only on release builds

    Semphris committed Jul 28, 2024
    Configuration menu
    Copy the full SHA
    2a501d6 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2024

  1. Move src/emscripten.hpp includes to $1.cpp

    Semphris committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    4f72fba View commit details
    Browse the repository at this point in the history