From b95e5e873c40e8cb286ffd9e5bb658bc41ce082b Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Tue, 5 Sep 2023 17:48:11 -0700 Subject: [PATCH] Allow actions to read BUILD_BROKEN_INCORRECT_PARTITION_IMAGES To maintain good backwards compatibility with the legacy partition building behavior, allow actions to read BUILD_BROKEN_INCORRECT_PARTITION_IMAGES so that we don't have to rerun analysis. Bug: 205632228 Test: Presubmits Change-Id: I8b25a62f24bc6d628fb055239b084f6ea535e38b --- ui/build/ninja.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/build/ninja.go b/ui/build/ninja.go index 61aaad86b..b69e938f8 100644 --- a/ui/build/ninja.go +++ b/ui/build/ninja.go @@ -194,6 +194,10 @@ func runNinjaForBuild(ctx Context, config Config) { // LLVM compiler wrapper options "TOOLCHAIN_RUSAGE_OUTPUT", + + // We don't want this build broken flag to cause reanalysis, so allow it through to the + // actions. + "BUILD_BROKEN_INCORRECT_PARTITION_IMAGES", }, config.BuildBrokenNinjaUsesEnvVars()...)...) }