Skip to content

Add a way to make arbitrary files available to C++ compilation targets #18766

@filmil

Description

@filmil

Description of the feature request:

See discussion at https://groups.google.com/g/bazel-discuss/c/XE57LP4keoc

There currently seems to be no way to include an arbitrary file in a cc_library or a cc_binary or similar rule to be available at compilation time.

Sometimes it is necessary, such as when you want to have your options captured in a file, or if you want to use .incbin in assembly compilation.

What underlying problem are you trying to solve with this feature?

No response

Which operating system are you running Bazel on?

No response

What is the output of bazel info release?

No response

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2We'll consider working on this in future. (Assignee optional)team-Rules-CPPIssues for C++ rulestype: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions