Move cc module installation into Soong
Move cc module installation rules into Soong by overriding InstallBypassMake. Update the locations that find host tools to look in the Make installation directory instead of the Soong installation directory, which will no longer be used. The methods that find host tools are also used on go binaries, so update the config methods that tell Blueprint where to install go binaries to the Make installation directory too. Bug: 204136549 Test: m checkbuild Change-Id: Id172592c195e506102982a4af0084f6d9c68a896
This commit is contained in:
@@ -839,6 +839,14 @@ func sboxPathForToolRel(ctx BuilderContext, path Path) string {
|
||||
// The tool is in the Soong output directory, it will be copied to __SBOX_OUT_DIR__/tools/out
|
||||
return filepath.Join(sboxToolsSubDir, "out", relOutSoong)
|
||||
}
|
||||
if ctx.Config().KatiEnabled() {
|
||||
toolDir = toolDir.ToMakePath()
|
||||
relOut, isRelOut, _ := maybeRelErr(toolDir.String(), path.String())
|
||||
if isRelOut {
|
||||
// The tool is in the Make output directory, it will be copied to __SBOX_OUT_DIR__/tools/out
|
||||
return filepath.Join(sboxToolsSubDir, "out", relOut)
|
||||
}
|
||||
}
|
||||
// The tool is in the source directory, it will be copied to __SBOX_OUT_DIR__/tools/src
|
||||
return filepath.Join(sboxToolsSubDir, "src", path.String())
|
||||
}
|
||||
|
Reference in New Issue
Block a user