mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
Don't strip debug symbols in debug mode (#669)
This commit is contained in:
parent
d5ce82b6f5
commit
d361ea15fb
@ -173,8 +173,8 @@ 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)
|
||||
# Set the default symbol visibility to hidden (very important to obtain small binaries)
|
||||
if (NOT MSVC)
|
||||
target_compile_options(${target_name} PRIVATE "-fvisibility=hidden")
|
||||
|
||||
# Strip unnecessary sections of the binary on Linux/Mac OS
|
||||
|
Loading…
Reference in New Issue
Block a user