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

[Doc][C++][Python] Unclear how to influence compilation flags

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • None
    • None
    • C++, Documentation, Python
    • None

    Description

      Frequently people need to customize compilation flags for C++ and/or C files.

      Unfortunately, both for Arrow C++ and PyArrow, it is very difficult to find out the proper way to do this.

      For Arrow C++, it seems ARROW_CXXFLAGS should be passed to CMake, while the CXXFLAGS environment variable is ignored (it probably shouldn't?).

      For PyArrow, I have not found a way to do it. -The CXXFLAGS environment variable is ignored, and -the PYARROW_CXXFLAGS CMake variable has two problems:

      • it is only recognized for Cython-generated files, not for PyArrow C++ sources
      • it only affects linker calls, while it should actually affect compiler calls (edit: does it?)

      Edit: I was wrong, the CXXFLAGS environment variable is not ignored.

      Attachments

        Activity

          People

            Unassigned Unassigned
            apitrou Antoine Pitrou
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: