[ 
https://issues.apache.org/jira/browse/ARROW-18231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kouhei Sutou resolved ARROW-18231.
----------------------------------
    Fix Version/s: 11.0.0
       Resolution: Fixed

Issue resolved by pull request 15022
https://github.com/apache/arrow/pull/15022

> [C++] Cannot override optimization level using CXXFLAGS
> -------------------------------------------------------
>
>                 Key: ARROW-18231
>                 URL: https://issues.apache.org/jira/browse/ARROW-18231
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Antoine Pitrou
>            Assignee: Kouhei Sutou
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 11.0.0
>
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> In release mode, Arrow C++ unconditionally adds {{-O2}} _at the end_ of the 
> compiler flags.
> So, if you do something like:
> {code:bash}
> export CXXFLAGS=-O0
> cmake ...
> {code}
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to