Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-9698

[C++] Revert "Add -NDEBUG flag to arrow.pc"

    XMLWordPrintableJSON

Details

    Description

      ARROW-2275 introduced a `#ifndef NDEBUG` check around a function which caused the function to to be omitted during release builds.

      As a workaround, ARROW-2313 added -DNDEBUG flags to the pkg-config cmake definition so that anyone using the release build of the package would not run into any issues with the missing code. As a result of this change,`pkg-config arrow --cflags` results in -DNDEBUG being added as a compiler flag, forcing itself on the downstream project whenever the dependency is located using pkg-config --.

      The original `#ifndef NDEBUG` change was reverted with ARROW-2316, but the workaround in ARROW-2313 remains.

      I am proposing to revert the workaround in ARROW-2313 so that downstream projects may link against the release build of arrow without adopting the -DNDEBUG flag unnecessarily.

      Attachments

        Issue Links

          Activity

            People

              bdunlay-amzn Brian Dunlay
              bdunlay-amzn Brian Dunlay
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h 10m
                  4h 10m