blob: 8885781f28c2b9f8b5f8154679e18b0c35e31f81 [file] [log] [blame]
<p><code>Dictionary of strings; optional; values are subject to
<a href="${link make-variables#location}">$(location)</a> and
<a href="${link make-variables}">"Make variable"</a> substitution</code></p>
<p>Specifies additional environment variables to set when the target is
executed by <code>bazel run</code>.
</p>
<p>
This attribute only applies to native rules, like <code>cc_binary</code>, <code>py_binary</code>,
and <code>sh_binary</code>. It does not apply to Starlark-defined executable rules.
</p>
<p>
<em class="harmful">NOTE: The environment variables are not set when you run the target
outside of Bazel (for example, by manually executing the binary in
<code>bazel-bin/</code>).</em>
</p>