Skip to content

Disable debug-info generation with a top-level attribute #2978

@p0nce

Description

@p0nce

SIMD headers have hundreds, if not thousands of functions, so clang uses __nodebug__ attribute to avoid for a particular function.
I've not found a way to do it in LDC.

Because we have no raw text macros, what I would want is to disable debug generation of all functions defined at top-level, with a:

pragma(disableDebugInfo, true):
(or something similar at top-level)

This is because there are so much functions it would be impractical to copy/paste for each.

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