summaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'build.py')
-rwxr-xr-xbuild.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.py b/build.py
index 388ec46a13..5e03c6388c 100755
--- a/build.py
+++ b/build.py
@@ -268,6 +268,10 @@ class HostBuild():
self.custom_env['CXX_ROOT_PATH'] = os.path.join(self.platform_dir, 'bt')
self.custom_env['CROS_SYSTEM_API_ROOT'] = os.path.join(self.platform_dir, 'system_api')
self.custom_env['CXX_OUTDIR'] = self._gn_default_output()
+
+ # On ChromeOS, this is /usr/bin/grpc_rust_plugin
+ # In the container, this is /root/.cargo/bin/grpc_rust_plugin
+ self.custom_env['GRPC_RUST_PLUGIN_PATH'] = shutil.which('grpc_rust_plugin')
self.env.update(self.custom_env)
def print_env(self):