diff options
author | 2022-08-20 14:48:32 -0400 | |
---|---|---|
committer | 2022-08-23 13:15:12 -0400 | |
commit | ad876010fe85dda199d61e9c896b48d6ef44c435 (patch) | |
tree | e0d457c39c3963d1782d0c351710d8e6949727fb /android/testing.go | |
parent | ff2768d28a24b00972e4300ad9da4de00cfe2559 (diff) |
Refactor mixed build allowlist handling
This refactoring prepares for introduction of bazel prod mode, an
alternative mechanism for mixed builds allowlist handling.
* Decide bazel-mode as close to soong_build main as possible
* BazelContext itself decides whether a module is allowlisted
* Separate bp2build and mixed build allowlist
Test: m nothing, manually verified all modules are mixed build disabled
(via metrics)
Test: USE_BAZEL_ANALYSIS=1 m nothing, manually verified that mixed build
disabled/enabled modules are identical before and after change.
Change-Id: I0f55d8b85000cb4a871a099edc6d7d868d7df509
Diffstat (limited to 'android/testing.go')
-rw-r--r-- | android/testing.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/testing.go b/android/testing.go index b4429ca91..ef5e5a988 100644 --- a/android/testing.go +++ b/android/testing.go @@ -457,7 +457,7 @@ func (ctx *TestContext) Register() { // RegisterForBazelConversion prepares a test context for bp2build conversion. func (ctx *TestContext) RegisterForBazelConversion() { - ctx.SetRunningAsBp2build() + ctx.config.BuildMode = Bp2build RegisterMutatorsForBazelConversion(ctx.Context, ctx.bp2buildPreArch) } |