blob: 699eb615500c2ed0ff8a4aa80af0a3e862514e0d [file] [log] [blame]
Andrew Geisslerac970dd2021-02-12 15:32:45 -06001From debd676cd94f92a30b3be45f1245aa13d8c398c0 Mon Sep 17 00:00:00 2001
Andrew Geissler748a4832020-07-24 16:24:21 -05002From: 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>
Andrew Geisslerac970dd2021-02-12 15:32:45 -06009Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Andrew Geissler748a4832020-07-24 16:24:21 -050010---
Andrew Geisslerac970dd2021-02-12 15:32:45 -060011 tools/pybind11NewTools.cmake | 5 -----
12 tools/pybind11Tools.cmake | 4 ----
13 2 files changed, 9 deletions(-)
Andrew Geissler748a4832020-07-24 16:24:21 -050014
Andrew Geisslerac970dd2021-02-12 15:32:45 -060015diff --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()
Andrew Geissler748a4832020-07-24 16:24:21 -050022
Andrew Geisslerac970dd2021-02-12 15:32:45 -060023- 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})
Andrew Geissler748a4832020-07-24 16:24:21 -050026- endif()
27-
28 if(MSVC)
Andrew Geisslerac970dd2021-02-12 15:32:45 -060029 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()
Andrew Geissler748a4832020-07-24 16:24:21 -050046--
Andrew Geisslerac970dd2021-02-12 15:32:45 -0600472.17.1
Andrew Geissler748a4832020-07-24 16:24:21 -050048