Skip to content

C23/C++26 #embed --embed-dir= #15507

@Flat

Description

@Flat

With the new #embed preprocessor directive in C23 and C++26 clang and g++ support the --embed-dir= argument which works in a similar way to -I. The executable private build directory is passed automatically as an include dir, but not as an embed-dir.

I am currently using '--embed-dir=' + meson.current_build_dir() + '/program.p' as a work around, passing this as a compiler arg, but I do not believe this is the correct way to do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions