Skip to content

Commit

Permalink
Python: Do Not Strip Symbols In Debug (openPMD#1219)
Browse files Browse the repository at this point in the history
Avoid stripping symbols for Python debug builds, so we can see lines
in coredumps and debugger runs.
  • Loading branch information
ax3l authored Mar 8, 2022
1 parent 7c876c7 commit 3cf5291
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,9 @@ if(openPMD_HAVE_PYTHON)
else()
pybind11_extension(openPMD.py)
endif()
pybind11_strip(openPMD.py)
if(NOT MSVC AND NOT ${CMAKE_BUILD_TYPE} MATCHES Debug|RelWithDebInfo)
pybind11_strip(openPMD.py)
endif()

set_target_properties(openPMD.py PROPERTIES CXX_VISIBILITY_PRESET "hidden"
CUDA_VISIBILITY_PRESET "hidden")
Expand Down

0 comments on commit 3cf5291

Please sign in to comment.