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

[C++] Disable color diagnostics when compiling with ccache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • None
    • 7.0.0
    • C++

    Description

      Copied from https://github.com/apache/arrow/issues/11279

      Steps to reproduce:

      Compile arrow_objlib with ccache, clang and CCACHE_DEBUG=1 CCACHE_LOGFILE=./ccache.log
      Find in ./ccache.log:
      Failed; falling back to running the real compiler
      Result: unsupported compiler option
      Dropping -fcolor-diagnostics fixes the issue.

      I suggest either opting into color diagnostics with WITH_COLOR_DIAGNOSTICS or adding a way to disable it via DISABLE_COLOR_DIAGNOSTICS.
      It would be good if this wouldn't be tied to ARROW_USE_CCACHE since its also relevant for:
      -DARROW_USE_CCACHE=OFF -DCMAKE_CXX_COMPILER_LAUNCHER=emscripten_ccache.

      Attachments

        Issue Links

          Activity

            People

              edponce Eduardo Ponce
              kszucs Krisztian Szucs
              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 - 1h 10m
                  1h 10m