Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2331

Allow producing a RelWithDebInfo build with asserts enabled

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • proton-c-0.33.0
    • None
    • build, proton-c
    • None

    Description

      The LLVM project has a CMake option which enables asserts in C code in any build type, including RelWithDebInfo, etc. This seems like an useful thing to have.

      It can reduce number of builds needed in CI (we don't have a Debug build for MacOS now). Some bugs may only manifest in Release builds. Sanitizers run faster on Release builds.

      Coverity warns about assert calls with side effects, so enabling asserts all the time should be safe (Coverity would scream if it had any effects on functionality).

      Attachments

        Issue Links

          Activity

            People

              jdanek Jiri Daněk
              jdanek Jiri Daněk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: