File tree 4 files changed +7
-5
lines changed
4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -280,11 +280,11 @@ attribute.
280
280
doc = """
281
281
Whether py source files should be precompiled.
282
282
283
- See also: `--precompile` flag, which can override this attribute in some cases.
283
+ See also: {flag} `--precompile` flag, which can override this attribute in some cases.
284
284
285
285
Values:
286
286
287
- * `inherit`: Determine the value from the --precompile flag.
287
+ * `inherit`: Determine the value from the {flag}` --precompile` flag.
288
288
* `enabled`: Compile Python source files at build time. Note that
289
289
--precompile_add_to_runfiles affects how the compiled files are included into
290
290
a downstream binary.
@@ -333,7 +333,7 @@ runtime when the code actually runs.
333
333
Determines, when a source file is compiled, if the source file is kept
334
334
in the resulting output or not. Valid values are:
335
335
336
- * `inherit`: Inherit the value from the `--precompile_source_retention` flag.
336
+ * `inherit`: Inherit the value from the {flag} `--precompile_source_retention` flag.
337
337
* `keep_source`: Include the original Python source.
338
338
* `omit_source`: Don't include the original py source.
339
339
* `omit_if_generated_source`: Keep the original source if it's a regular source
Original file line number Diff line number Diff line change @@ -96,14 +96,14 @@ filename in `srcs`, `main` must be specified.
96
96
doc = """
97
97
Determines whether pyc files from dependencies should be manually included.
98
98
99
- NOTE: This setting is only useful with `--precompile_add_to_runfiles=decided_elsewhere`.
99
+ NOTE: This setting is only useful with {flag} `--precompile_add_to_runfiles=decided_elsewhere`.
100
100
101
101
Valid values are:
102
102
* `include_pyc`: Add pyc files from dependencies in the binary (from
103
103
`PyInfo.transitive_pyc_files`.
104
104
* `disabled`: Don't explicitly add pyc files from dependencies. Note that
105
105
pyc files may still come from dependencies if a target includes them as
106
- part of their runfiles (such as when `--precompile_add_to_runfiles=always`
106
+ part of their runfiles (such as when {obj} `--precompile_add_to_runfiles=always`
107
107
is used).
108
108
""" ,
109
109
),
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ searched and matched. Supported cross reference roles are:
106
106
107
107
* ` {bzl:arg} ` : Refer to a function argument.
108
108
* ` {bzl:attr} ` : Refer to a rule attribute.
109
+ * ` {bzl:flag} ` : Refer to a flag.
109
110
* ` {bzl:obj} ` : Refer to any type of Bazel object
110
111
* ` {bzl:rule} ` : Refer to a rule.
111
112
* ` {bzl:target} ` : Refer to a target.
Original file line number Diff line number Diff line change @@ -1410,6 +1410,7 @@ class _BzlDomain(domains.Domain):
1410
1410
"arg" : roles .XRefRole (),
1411
1411
"attr" : roles .XRefRole (),
1412
1412
"default-value" : _DefaultValueRole (),
1413
+ "flag" : roles .XRefRole (),
1413
1414
"obj" : roles .XRefRole (),
1414
1415
"required-providers" : _RequiredProvidersRole (),
1415
1416
"return-type" : _ReturnTypeRole (),
You can’t perform that action at this time.
0 commit comments