Skip to content

Commit

Permalink
Don't strip debug symbols in RelWithDebInfo mode (pybind#1892)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekrolm authored and wjakob committed Aug 23, 2019
1 parent 12e8774 commit 8f5a8ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pybind11Tools.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function(pybind11_add_module target_name)

_pybind11_add_lto_flags(${target_name} ${ARG_THIN_LTO})

if (NOT MSVC AND NOT ${CMAKE_BUILD_TYPE} MATCHES Debug)
if (NOT MSVC AND NOT ${CMAKE_BUILD_TYPE} MATCHES Debug|RelWithDebInfo)
# Strip unnecessary sections of the binary on Linux/Mac OS
if(CMAKE_STRIP)
if(APPLE)
Expand Down

0 comments on commit 8f5a8ab

Please sign in to comment.