You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wraps a pre-built binary or script with a binary rule.
@@ -31,6 +31,7 @@ in genrule.tools for example. You can also augment the binary with runfiles.
31
31
| <aid="native_binary-src"></a>src | path of the pre-built executable | <ahref="https://bazel.build/concepts/labels">Label</a> | required ||
32
32
| <aid="native_binary-data"></a>data | data dependencies. See https://bazel.build/reference/be/common-definitions#typical.data| <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
33
33
| <aid="native_binary-out"></a>out | An output name for the copy of the binary. Defaults to name.exe. (We add .exe to the name by default because it's required on Windows and tolerated on other platforms.) | String | optional |`""`|
34
+
| <aid="native_binary-env"></a>env | Environment variables to set when running the binary. | <ahref="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | optional |`{}`|
34
35
35
36
36
37
<aid="native_test"></a>
@@ -40,7 +41,7 @@ in genrule.tools for example. You can also augment the binary with runfiles.
Wraps a pre-built binary or script with a test rule.
@@ -57,5 +58,6 @@ the binary with runfiles.
57
58
| <aid="native_test-src"></a>src | path of the pre-built executable | <ahref="https://bazel.build/concepts/labels">Label</a> | required ||
58
59
| <aid="native_test-data"></a>data | data dependencies. See https://bazel.build/reference/be/common-definitions#typical.data| <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
59
60
| <aid="native_test-out"></a>out | An output name for the copy of the binary. Defaults to name.exe. (We add .exe to the name by default because it's required on Windows and tolerated on other platforms.) | String | optional |`""`|
61
+
| <aid="native_test-env"></a>env | Environment variables to set when running the binary. | <ahref="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | optional |`{}`|
0 commit comments