Skip to content

error: unknown argument: '-g' - Unable to get debug information #66595

Open
@100xCoder

Description

@100xCoder

In using libclang-cpp18 I notice that whichever dwarf-enabling flag I supply to clang::CompilerInvocation, it always fails with "unknown argument". When I supply "-gdwarf64" it is accepted, it's even suggested when I try "-gdwarf-4", which is also unknown.

Ubuntu clang version 18.0.0 (++20230917042247+4a1fe09b189f-1exp120230917042412.1190)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions