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 with optimizations by default #543

Merged
merged 1 commit into from
Oct 1, 2019

Commits on Sep 30, 2019

  1. Build with optimizations by default

    GCC builds without optimizations by default while Clang uses -O2.
    Use -O2 for GCC by default too, but switch to -O0 when DEBUG is
    defined. Also make sure to always output debug information, not
    only in debug builds. Additional sections with it do not impact
    performance but are very useful in production. And they can be
    easily stripped out of the binaries if necessary, like we do when
    building packages.
    
    We disable frame pointer omission optimization to get better stack
    frames and enable debugging on x86. While it has some impact, I'd
    rather have working backtraces.
    ilammy committed Sep 30, 2019
    Configuration menu
    Copy the full SHA
    34adec0 View commit details
    Browse the repository at this point in the history