Skip to content

[Clang] Missing #embed file fails with option -MG, unlike GCC #165632

@fuhsnn

Description

@fuhsnn

For file foo.c like this:

char arr[] {
#embed "bar"
};

clang foo.c -MM -MG fails with "file not found";
gcc foo.c -MM -MG succeeds and prints foo.o: foo.c bar.
Looks like GCC's -MG treat missing #embed file as missing dependency like missing #include files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partydiverges-from:gccDoes the clang frontend diverge from gcc on this issueembed#embed (not embedded systems)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions