Skip to content

Commit

Permalink
ARROW-12793: [Python] Fix support for pyarrow debug builds
Browse files Browse the repository at this point in the history
Closes apache#10324 from amol-/ARROW-12793

Authored-by: Alessandro Molina <amol@turbogears.org>
Signed-off-by: David Li <li.davidm96@gmail.com>
  • Loading branch information
amol- authored and pull[bot] committed Sep 13, 2021
1 parent c72dea8 commit 55d21b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpp/cmake_modules/UseCython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ function(compile_pyx
endif()

if(NOT WIN32)
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug"
OR "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo")
string( TOLOWER "${CMAKE_BUILD_TYPE}" build_type )
if("${build_type}" STREQUAL "debug"
OR "${build_type}" STREQUAL "relwithdebinfo")
set(cython_debug_arg "--gdb")
endif()
endif()
Expand Down

0 comments on commit 55d21b0

Please sign in to comment.