Allow system_image_defaults to access libc_hwasan
As system_image_defaults replaces base_system.mk in Soong, allow
system_image_defaults to have visibility to libc_hwasan, so it can add
the library with ARM64 arch.
Bug: 381019466
Test: system_image_defaults can access libc_hwasan as a dependency.
Change-Id: Ibee2e67723807f56ff0062be93e12e7900ad86f6
diff --git a/libc/Android.bp b/libc/Android.bp
index 3c5c9f1..c34023c 100644
--- a/libc/Android.bp
+++ b/libc/Android.bp
@@ -1659,8 +1659,14 @@
},
native_bridge_supported: false,
// It is never correct to depend on this directly. This is only
- // needed for the runtime apex, and in base_system.mk.
- visibility: ["//bionic/apex"],
+ // needed for the runtime apex, and in base_system.mk, and system_image_defaults
+ // which is default module for soong-defined system image.
+ visibility: [
+ "//bionic/apex",
+ "//build/make/target/product/generic",
+ //TODO(b/381985636) : Remove visibility to Soong-defined GSI once resolved
+ "//build/make/target/product/gsi",
+ ],
}
genrule {