Merge "Sandbox inputs to aidl rule in cc" am: cd4e6a609e am: 713bbad7bd am: edc81c3ebc am: e605dc7081 am: 12b219771a am: bb2adbfa73

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

Change-Id: I25eb772d3f73d182eed65e09701f503733b75a6a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-05-24 04:17:18 +00:00
committed by Automerger Merge Worker
7 changed files with 188 additions and 35 deletions

View File

@@ -759,6 +759,14 @@ func (c *config) HostJavaToolPath(ctx PathContext, tool string) Path {
return path
}
func (c *config) HostCcSharedLibPath(ctx PathContext, lib string) Path {
libDir := "lib"
if ctx.Config().BuildArch.Multilib == "lib64" {
libDir = "lib64"
}
return pathForInstall(ctx, ctx.Config().BuildOS, ctx.Config().BuildArch, libDir, false, lib+".so")
}
// PrebuiltOS returns the name of the host OS used in prebuilts directories.
func (c *config) PrebuiltOS() string {
switch runtime.GOOS {