Add an option to include debug information in the Python executable and shared libraries in MacOS

Offen
#95,973 4 Kommentare 1 Reaktion 1 zugewiesene Person Auf GitHub ansehen

@ronaldoussoren arbeitet bereits daran.

Seit 14.8.2022.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

build

Because MacOS likes to do things differently, the DWARF debugging information is not included by default in the final executables and shared libraries. Instead, MacOS has a separate linker dsymutil that can link this information in the final binary. Because by default nobody is doing this, all the python installations in MacOS have no debug information at all making debuggers like lldb almost useless.

To solve this problem, add a new --with-dsymutil configure option that ensures that we package the debug information inside. In my M1 macos this makes the Python executable 0.2M bigger.

We should maybe discuss if we want to activate this by default.

Vorherrschende Sprache
Python
Sterne
77.2k
Forks
36k
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
558

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus python/cpython

Alle Issues in python/cpython

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.