bazelbuild/bazel

Add `textual_hdrs` to cc_binary

Open

#20.823 geöffnet am 9. Jan. 2024

Auf GitHub ansehen
 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Java (4.465 Forks)batch import
P2help wantedteam-Rules-CPPtype: feature request

Repository-Metriken

Stars
 (25.384 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 22T 20h) (77 gemergte PRs in 30 T)

Beschreibung

Description of the feature request:

Given that there is an allowlist of possible file extensions in hdrs= and that cc_binary doesn't have a textual_hdrs attribute, there isn't really a good way to say "this cc_binary has a source file that is included from somewhere but it doesn't compile by itself".

Sounds like a logical addition and nice polish.

Which category does this issue belong to?

C++/Objective-C Rules

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

No response

Which operating system are you running Bazel on?

\

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

Contributor Guide