Skip to content

Compiler stages: model "meta" stages #43393

@woodruffw

Description

@woodruffw

Clang has a bunch of flags that cause the clang and clang++ drivers to print out information, rather than actually doing anything with inputs.

We handle some of these already (like -### and -v) by marking them as CompilerStage.Unknown, but we should really mark them as something like CompilerStage.Meta and handle other common cases:

  • -print-file-name=<file>
  • -print-libgcc-file-name
  • -print-prog-name=<prog>
  • -print-search-dirs

Each of the above also works as a "long" option, e.g. --print-search-dirs. GCC also probably has more of its own.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:coreBlight's core classes and interfacesenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions