[ https://issues.apache.org/jira/browse/ARROW-18039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17640997#comment-17640997 ]
Kouhei Sutou commented on ARROW-18039: -------------------------------------- {noformat} 2: 103.922000s: src/parquet/CMakeFiles/parquet-arrow-test.dir/arrow/arrow_reader_writer_test.cc.obj {noformat} Building without optimization (removing {{-O2}}, {{-DNDEBUG}} and so on from command line, no {{-OX}} flag) is faster: 103s -> 81s Building with {{-O0}} is faster: 103s -> 84s Building with {{-O0 -ggdb}} is slower: 103s -> 123s > [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)