From 038bfa08235ecf960e39d9a0e58e2799686d14d2 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Fri, 4 Mar 2022 16:48:13 -0800 Subject: [PATCH] Python: Do Not Strip Symbols In Debug Avoid stripping symbols for Python debug builds, so we can see lines in coredumps and debugger runs. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ce713eced..c776fbc47a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")