Skip to content

OSX: LDC linked against regular LLVM won't show line numbers in stack trace #3280

@Geod24

Description

@Geod24

On OSX, the linker strips .debug_lines, which makes the backtrace code in Druntime non-functional.
LDC already has a workaround for this (here), however this workaround requires to compile against a modified version of LLVM.

So if one downloads the release from Github, things work correctly, but for Homebrew users (who build from source), line numbers aren't shown by default.

Is there any chance that the patch can be upstreamed so people linking against stock LLVM can benefit from it ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions