summaryrefslogtreecommitdiff
path: root/ci/optimized_targets.py
diff options
context:
space:
mode:
author Luca Farsi <lucafarsi@google.com> 2024-08-01 14:47:10 -0700
committer Luca Farsi <lucafarsi@google.com> 2024-08-02 14:45:36 -0700
commitb24c1c3dbde9ac93d034be033bbb951f803ef0e2 (patch)
tree7525fc4b859c81f96d2f0fc86c824da6bb9e18c9 /ci/optimized_targets.py
parent8afaf50fafbd2fa2ca79f5b58c75fedc038e61d1 (diff)
Don't build targets if they're not used.
Add functionality in build_test_suites.py to not build targets if their outputs are not used in the test configurations saved in the build context. If none of the tests reference the targets' outputs they will not be built at all. Note that the corresponding flags will need to be enabled for these optimizations to take place. Test: atest optimized_targets_test Bug: 348489774 Change-Id: I8f0ac90e75552ae80073f13229b026c7f23476a6
Diffstat (limited to 'ci/optimized_targets.py')
-rw-r--r--ci/optimized_targets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/optimized_targets.py b/ci/optimized_targets.py
index 224c8c0221..632171906d 100644
--- a/ci/optimized_targets.py
+++ b/ci/optimized_targets.py
@@ -53,7 +53,7 @@ class NullOptimizer(OptimizedBuildTarget):
def get_target_optimizer(target, enabled_flag, build_context, optimizer):
- if enabled_flag in build_context['enabled_build_features']:
+ if enabled_flag in build_context['enabledBuildFeatures']:
return optimizer
return NullOptimizer(target)