diff options
author | Spandan Das <spandandas@google.com> | 2023-02-15 21:57:34 +0000 |
---|---|---|
committer | Spandan Das <spandandas@google.com> | 2023-02-15 21:59:44 +0000 |
commit | 294a7d39a21beec8dc1509fd0bd02cdc0a46c064 (patch) | |
tree | ac74ee79539048add5e8d2521148ff0ebb54c55e | |
parent | e9e5eedb977167e72c3f4b17d5ea196cdac742e1 (diff) | |
download | orchestrator-294a7d39a21beec8dc1509fd0bd02cdc0a46c064.tar.gz |
Add TARGET_BUILD_VARIANT env var in ninja execution
Currently, this is only set during analysis. This is necessary in
execution for builds of files like
packages/modules/Virtualization/authfs/service/src/main.rs
Test: multitree_build system/systemimage (without api_surfaces)
Change-Id: I45a128bd2f66ee5f279ecb110a2051b74b5bc708
-rwxr-xr-x | core/orchestrator.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/orchestrator.py b/core/orchestrator.py index efadd66..5903e47 100755 --- a/core/orchestrator.py +++ b/core/orchestrator.py @@ -204,6 +204,7 @@ class Orchestrator(): # different JDK toolchains.) # For now, set `OUT_DIR` which is inner tree agnostic. jail_cfg.add_envar(name="OUT_DIR", value=utils.choose_out_dir()) + jail_cfg.add_envar(name="TARGET_BUILD_VARIANT", value=self.variant) # Disable network access in the combined ninja execution jail_cfg.add_option(name="clone_newnet", value="true") ninja_runner.run_ninja(context, jail_cfg, targets) |