Merge "Reduce modules exposed to Make in Mac builds"

This commit is contained in:
Dan Willemsen
2021-10-19 00:32:54 +00:00
committed by Gerrit Code Review
6 changed files with 72 additions and 9 deletions

View File

@@ -166,15 +166,6 @@ type mpContext struct {
MainLogsDir string
}
func detectTotalRAM() uint64 {
var info syscall.Sysinfo_t
err := syscall.Sysinfo(&info)
if err != nil {
panic(err)
}
return info.Totalram * uint64(info.Unit)
}
func findNamedProducts(soongUi string, log logger.Logger) []string {
cmd := exec.Command(soongUi, "--dumpvars-mode", "--vars=all_named_products")
output, err := cmd.Output()