Index: infra/bots/recipes/swarm_compile.py |
diff --git a/infra/bots/recipes/swarm_compile.py b/infra/bots/recipes/swarm_compile.py |
index 09fb1f62bc4b6c1fc00e872a2db0ccc1fb95b0f5..bb592563af29afb3e0401ddee72784b58c076a3d 100644 |
--- a/infra/bots/recipes/swarm_compile.py |
+++ b/infra/bots/recipes/swarm_compile.py |
@@ -48,9 +48,13 @@ TEST_BUILDERS = { |
def RunSteps(api): |
api.core.setup() |
+ env = api.vars.builder_spec['env'] |
+ |
+ build_targets = api.vars.builder_spec['build_targets'] |
+ |
try: |
- for target in api.vars.build_targets: |
- api.flavor.compile(target) |
+ for target in build_targets: |
+ api.flavor.compile(target, env=env) |
api.run.copy_build_products( |
api.flavor.out_dir, |
api.vars.swarming_out_dir.join( |