Merge "Fix install path for sanitized native tests. (Soong)"
This commit is contained in:
@@ -672,15 +672,17 @@ func PathForModuleRes(ctx ModuleContext, pathComponents ...string) ModuleResPath
|
|||||||
func PathForModuleInstall(ctx ModuleContext, pathComponents ...string) OutputPath {
|
func PathForModuleInstall(ctx ModuleContext, pathComponents ...string) OutputPath {
|
||||||
var outPaths []string
|
var outPaths []string
|
||||||
if ctx.Device() {
|
if ctx.Device() {
|
||||||
partition := "system"
|
var partition string
|
||||||
if ctx.Vendor() {
|
if ctx.Vendor() {
|
||||||
partition = ctx.DeviceConfig().VendorPath()
|
partition = ctx.DeviceConfig().VendorPath()
|
||||||
|
} else if ctx.InstallInData() {
|
||||||
|
partition = "data"
|
||||||
|
} else {
|
||||||
|
partition = "system"
|
||||||
}
|
}
|
||||||
|
|
||||||
if ctx.InstallInSanitizerDir() {
|
if ctx.InstallInSanitizerDir() {
|
||||||
partition = "data/asan/" + partition
|
partition = "data/asan/" + partition
|
||||||
} else if ctx.InstallInData() {
|
|
||||||
partition = "data"
|
|
||||||
}
|
}
|
||||||
outPaths = []string{"target", "product", ctx.AConfig().DeviceName(), partition}
|
outPaths = []string{"target", "product", ctx.AConfig().DeviceName(), partition}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user