Skip to content

Commit

Permalink
Update documentation for CompilationContext to be more clear.
Browse files Browse the repository at this point in the history
This better matches the text in defines,local_defines on cc_binary.

PiperOrigin-RevId: 412075161
  • Loading branch information
Googler authored and copybara-github committed Nov 24, 2021
1 parent bdc60b0 commit afb499e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,16 @@ public interface CcCompilationContextApi<FileT extends FileApi> extends Starlark
name = "defines",
doc =
"Returns the set of defines needed to compile this target. Each define is a string."
+ " These values are propagated to the target's transitive dependencies.",
+ " These values are propagated to the target's transitive dependents, that is, "
+ "any rules that depend on this target.",
structField = true)
Depset getStarlarkDefines();

@StarlarkMethod(
name = "local_defines",
doc =
"Returns the set of defines needed to compile this target. Each define is a string."
+ " These values are not propagated to the target's transitive dependencies.",
+ " These values are not propagated to the target's transitive dependents.",
structField = true)
Depset getStarlarkNonTransitiveDefines();

Expand Down

0 comments on commit afb499e

Please sign in to comment.