You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/12/19 07:56:00 UTC

[jira] [Updated] (ARROW-18231) [C++] Cannot override optimization level using CXXFLAGS

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

ASF GitHub Bot updated ARROW-18231:
-----------------------------------
    Labels: pull-request-available  (was: )

> [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
>          Time Spent: 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)