Commit 0176c78
committed
Neutralize pybind11 auto-strip so symbols survive for splitting
pybind11_add_module() unconditionally attaches a POST_BUILD
${CMAKE_STRIP} step -- plain `strip` on Linux, i.e. --strip-all --
which runs before our own split and destroys both symtab and DWARF.
Wheel builds therefore produced empty ~3KB .debug stubs (macOS was
unaffected: `strip -x` keeps DWARF; Windows: CMAKE_STRIP unset).
Stripping is now owned solely by the LBUG_SPLIT_DEBUG_SYMBOLS pipeline
(in-build objcopy split, or host-side split_debug_symbols.py for
wheels), both of which preserve .symtab so addresses stay mappable to
function names.1 parent af5052f commit 0176c78
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
9 | 20 | | |
10 | 21 | | |
11 | 22 | | |
| |||
87 | 98 | | |
88 | 99 | | |
89 | 100 | | |
90 | | - | |
91 | 101 | | |
92 | 102 | | |
93 | 103 | | |
| |||
0 commit comments