1From debd676cd94f92a30b3be45f1245aa13d8c398c0 Mon Sep 17 00:00:00 2001 2From: Philip Balister <philip@balister.org> 3Date: Wed, 8 Jul 2020 09:41:43 -0400 4Subject: [PATCH] Do not strip binaries. 5 6 * OpenEmbedded strips them after creating debug packages. 7 8Signed-off-by: Philip Balister <philip@balister.org> 9Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> 10--- 11 tools/pybind11NewTools.cmake | 5 ----- 12 tools/pybind11Tools.cmake | 4 ---- 13 2 files changed, 9 deletions(-) 14 15diff --git a/tools/pybind11NewTools.cmake b/tools/pybind11NewTools.cmake 16index 18da8be1..82ebf5e7 100644 17--- a/tools/pybind11NewTools.cmake 18+++ b/tools/pybind11NewTools.cmake 19@@ -246,11 +246,6 @@ function(pybind11_add_module target_name) 20 endif() 21 endif() 22 23- if(NOT MSVC AND NOT ${CMAKE_BUILD_TYPE} MATCHES Debug|RelWithDebInfo) 24- # Strip unnecessary sections of the binary on Linux/macOS 25- pybind11_strip(${target_name}) 26- endif() 27- 28 if(MSVC) 29 target_link_libraries(${target_name} PRIVATE pybind11::windows_extras) 30 endif() 31diff --git a/tools/pybind11Tools.cmake b/tools/pybind11Tools.cmake 32index 32313539..a7d81012 100644 33--- a/tools/pybind11Tools.cmake 34+++ b/tools/pybind11Tools.cmake 35@@ -201,10 +201,6 @@ function(pybind11_add_module target_name) 36 endif() 37 endif() 38 39- if(NOT MSVC AND NOT ${CMAKE_BUILD_TYPE} MATCHES Debug|RelWithDebInfo) 40- pybind11_strip(${target_name}) 41- endif() 42- 43 if(MSVC) 44 target_link_libraries(${target_name} PRIVATE pybind11::windows_extras) 45 endif() 46-- 472.17.1 48 49