Skip to content

Commit

Permalink
ARROW-8246: [C++] Add -Wa,-mbig-obj to CXXFLAGS on MinGW if it is sup…
Browse files Browse the repository at this point in the history
…ported

Hopefully this will resolve issues with debug builds on MinGW

Closes #6743 from wesm/ARROW-8246

Authored-by: Wes McKinney <wesm+git@apache.org>
Signed-off-by: Wes McKinney <wesm+git@apache.org>
  • Loading branch information
wesm committed Mar 27, 2020
1 parent 54ca546 commit 72433c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cpp/cmake_modules/SetupCxxFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ if(WIN32)

# Support large object code
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} /bigobj")
else()
# MinGW
check_cxx_compiler_flag(-Wa,-mbig-obj CXX_SUPPORTS_BIG_OBJ)
if(CXX_SUPPORTS_BIG_OBJ)
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -Wa,-mbig-obj")
endif()
endif(MSVC)
else()
# Common flags set below with warning level
Expand Down

0 comments on commit 72433c6

Please sign in to comment.