Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11020

Consistently use NDEBUG across all TU's when building without debugging

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.1
    • Affects Version/s: None
    • Component/s: Build
    • Fully Compatible
    • Platform 1 04/03/15

      For historical reasons, we have not been defining NDEBUG globally in the server build. This resulted in at least one subtle misconfiguration (see SERVER-11010). We fixed SERVER-11010 by adding NDEBUG, but scoped only to the gperftools build, but this won't protect against other future third_party dependencies on NDEBUG.

      We should, early in 2.7, promote NDEBUG to the top level build for non-debug builds.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: