Skip to content

Commit 038bfa0

Browse files
committed
Python: Do Not Strip Symbols In Debug
Avoid stripping symbols for Python debug builds, so we can see lines in coredumps and debugger runs.
1 parent 168dab3 commit 038bfa0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,9 @@ if(openPMD_HAVE_PYTHON)
692692
else()
693693
pybind11_extension(openPMD.py)
694694
endif()
695-
pybind11_strip(openPMD.py)
695+
if(NOT MSVC AND NOT ${CMAKE_BUILD_TYPE} MATCHES Debug|RelWithDebInfo)
696+
pybind11_strip(openPMD.py)
697+
endif()
696698

697699
set_target_properties(openPMD.py PROPERTIES CXX_VISIBILITY_PRESET "hidden"
698700
CUDA_VISIBILITY_PRESET "hidden")

0 commit comments

Comments
 (0)