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

[C++] Cannot override optimization level using CXXFLAGS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 11.0.0
    • C++

    Description

      In release mode, Arrow C++ unconditionally adds -O2 at the end of the compiler flags.
      So, if you do something like:

      export CXXFLAGS=-O0
      cmake ...
      

      the final compilation flags will look like -O0 -O2, meaning the user-provided optimization level is ignored.

      One can instead use the ARROW_CXXFLAGS CMake variable, but it only overrides the flags for Arrow itself, not the bundled dependencies.

      Attachments

        Issue Links

          Activity

            People

              kou Kouhei Sutou
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 3h 20m
                  3h 20m