[
https://issues.apache.org/jira/browse/ARROW-18039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17617314#comment-17617314
]
Kouhei Sutou commented on ARROW-18039:
--------------------------------------
As far as I remember, debug build is slower than release build because g++
needs to generate many debug information.
Anyway, I'll try something to reduce build times.
FYI: MinGW C++ builds are the fastest C++ builds for now:
https://github.com/apache/arrow/actions/runs/3242020860/usage
{noformat}
C++ Minimal Build Example 4m 3s
AMD64 Conda C++ 26m 49s
AMD64 Ubuntu 20.04 C++ ASAN UBSAN 1h 3m 9s
AMD64 macOS 11 C++ 30m 51s
AMD64 Windows 2019 C++17 15m 15s
AMD64 Windows MinGW 32 C++ 12m 34s
AMD64 Windows MinGW 64 C++ 11m 11s
{noformat}
> [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)