diff options
author | Rupert Shuttleworth <ruperts@google.com> | 2021-04-02 20:09:51 +0000 |
---|---|---|
committer | Rupert Shuttleworth <ruperts@google.com> | 2021-04-02 20:09:51 +0000 |
commit | bf94d2fdbad61650f6d657881b01ab2a4288a5ca (patch) | |
tree | 2678ac16894e367ab7c54fcc8ce216c03677096d /ui | |
parent | 5ad66aaf411b879ee492c17e94a0cf072ba91bf6 (diff) | |
download | soong-bf94d2fdbad61650f6d657881b01ab2a4288a5ca.tar.gz |
Allow Bazel actions to see the SHELL variable.
Test: TH
Change-Id: I97ffe7ad84dfb8d58d0e6d022f73d97a73778129
Diffstat (limited to 'ui')
-rw-r--r-- | ui/build/bazel.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/build/bazel.go b/ui/build/bazel.go index ec561d540..0ebfcd804 100644 --- a/ui/build/bazel.go +++ b/ui/build/bazel.go @@ -149,6 +149,9 @@ func runBazel(ctx Context, config Config) { cmd.Args = append(cmd.Args, "--action_env=PATH="+pathEnvValue) } + // Allow Bazel actions to see the SHELL variable (passed to Bazel above) + cmd.Args = append(cmd.Args, "--action_env=SHELL") + // Append custom build flags to the Bazel command. Changes to these flags // may invalidate Bazel's analysis cache. // These should be appended as the final args, so that they take precedence. |