commit | 22d0160fa360cf132f3b3747a10b650ef8719c41 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Apr 19 16:05:00 2022 -0700 |
committer | Yifan Hong <elsk@google.com> | Thu Apr 21 00:05:03 2022 +0000 |
tree | f0fe8e61999ef360836d482939fb9095ddc514ea | |
parent | c1bfbb77e101280f1c1925f1d5a828c882138c98 [diff] |
Add embedded_exec and exec_aspect. exec_aspect tells a rule what the dependent target's args and env are. Normally, they are only available to `bazel run` and `bazel test` commands. embedded_exec creates a script that runs the given executable with its env and args. This removes the env and args dependency so that we can use $(rootpath) on the executable directly to achieve the same effect of `bazel run`. Test: manual Test: bazel test //build/bazel_common_rules/exec/tests (see next CL) Bug: 229350514 Bug: 228560650 Change-Id: I010e987618c31713d2018faf6b8dbe5310bcc1da
This directory contains common Bazel rules and tools shared between the Platform and Kernel builds.
For platform-specific rules, place them in the platform checkout's //build/bazel/rules directory.
For kernel-specific rules, place them in kernel checkout's //build/kleaf directory.