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

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: