diff options
| author | 2021-03-29 20:06:57 -0400 | |
|---|---|---|
| committer | 2021-03-31 12:26:01 -0400 | |
| commit | b164b381b2073caad3915537e65ad9e4c721ad0d (patch) | |
| tree | b91d332be1866a0e91553ef6da4bd3348d418564 | |
| parent | 4f6d15465b5576ebc764ac39e2f3caa903a2747d (diff) | |
Register bp2build module types even outside generation
Without this fix, mixed builds are silently disabled, as a recent change
disabled mixed builds for all module types which are not listed in this
map. This map should be populated for both bp2build generation and for
mixed builds.
Test: lunch aosp_flame && USE_BAZEL_ANALYSIS=1 m libc
Change-Id: Ib2a3fb2de2e7a5204ef01355522ae569e0424dc7
| -rw-r--r-- | android/bazel.go | 4 | ||||
| -rw-r--r-- | android/register.go | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/android/bazel.go b/android/bazel.go index a7c6b6307..cc021527f 100644 --- a/android/bazel.go +++ b/android/bazel.go @@ -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 diff --git a/android/register.go b/android/register.go index 35469d476..4c8088d0c 100644 --- a/android/register.go +++ b/android/register.go @@ -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) |