[
https://issues.apache.org/jira/browse/ARROW-18039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17617554#comment-17617554
]
Antoine Pitrou commented on ARROW-18039:
----------------------------------------
They are certainly fast when ccache is hot :-) But when it's outdated or empty,
they take more than 1 hour each.
> [C++][CI] Reduce MinGW build times
> ----------------------------------
>
> Key: ARROW-18039
> URL: https://issues.apache.org/jira/browse/ARROW-18039
> Project: Apache Arrow
> Issue Type: Wish
> Components: C++, Continuous Integration
> Reporter: Antoine Pitrou
> Assignee: Kouhei Sutou
> Priority: Major
>
> The MinGW C++ builds on CI currently build in release mode. This is probably
> because debug builds on Windows are complicated (you must get all the
> dependencies also compiled in debug mode, AFAIU).
> However, we could probably disable optimizations, so as to reduce compilation
> times.
> The compilation flags are currently as follows:
> {code}
> -- CMAKE_C_FLAGS: -O2 -DNDEBUG -ftree-vectorize -Wa,-mbig-obj -Wall
> -Wno-conversion -Wno-sign-conversion -Wunused-result
> -fno-semantic-interposition -mxsave -msse4.2
> -- CMAKE_CXX_FLAGS: -Wno-noexcept-type -fdiagnostics-color=always -O2
> -DNDEBUG -ftree-vectorize -Wa,-mbig-obj -Wall -Wno-conversion
> -Wno-sign-conversion -Wunused-result -fno-semantic-interposition -mxsave
> -msse4.2
> {code}
> Perhaps we can pass {{-O0}}?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)