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

ci: Switch from "RelWithDebInfo" to "Release" config for MSVC jobs #1547

Closed
wants to merge 1 commit into from

Commits on Jun 22, 2024

  1. ci: Switch from "RelWithDebInfo" to "Release" config for MSVC jobs

    It is reasonable to test a configuration that is used in the Bitcoin
    Core build.
    
    For MSVC, the "Release" config (/O2 /Ob2) is preferable over
    "RelWithDebInfo" (/Zi /O2 /Ob1) for the following reasons:
    
    1. /Ob2 can be slightly better than /Ob1 for performance;
    see: https://learn.microsoft.com/en-us/cpp/build/reference/ob-inline-function-expansion
    
    2. /Zi, which produces a separate PDB file that contains all the
    symbolic debugging information, is incompatible with ccache; see:
    https://learn.microsoft.com/en-us/cpp/build/reference/z7-zi-zi-debug-information-format
    https://github.com/ccache/ccache/wiki/MS-Visual-Studio
    hebasto committed Jun 22, 2024
    Configuration menu
    Copy the full SHA
    d2fecc9 View commit details
    Browse the repository at this point in the history