Merge "Register bp2build module types even outside generation" am: c68bc37e51 am: 776f9ef8cb

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1657219

Change-Id: Ib21052dc10472a31bb888b366bb9ccc11a3cf17d
This commit is contained in:
Christopher Parsons 2021-03-31 17:32:30 +00:00 committed by Automerger Merge Worker
commit 2365195fa0
2 changed files with 12 additions and 1 deletions

View File

@ -129,8 +129,8 @@ var (
}
// Per-module denylist to always opt modules out.
bp2buildModuleDoNotConvertList = []string{
"generated_android_ids",
"libBionicBenchmarksUtils",
"libbionic_spawn_benchmark",
"libc_jemalloc_wrapper",
@ -170,6 +170,8 @@ var (
"liblinker_debuggerd_stub",
"libbionic_tests_headers_posix",
"libc_dns",
"note_memtag_heap_async",
"note_memtag_heap_sync",
}
// Used for quicker lookups

View File

@ -192,6 +192,15 @@ func (ctx *Context) Register() {
t.register(ctx)
}
if ctx.config.BazelContext.BazelEnabled() {
// Hydrate the configuration of bp2build-enabled module types. This is
// required as a signal to identify which modules should be deferred to
// Bazel in mixed builds, if it is enabled.
for t, _ := range bp2buildMutators {
ctx.config.bp2buildModuleTypeConfig[t] = true
}
}
mutators := collateGloballyRegisteredMutators()
mutators.registerAll(ctx)