Merge "Use prebuilt llvm-rs-cc for unbundled build" am: 6a8d765843

am: 9bfdf33c04

Change-Id: I0e836b4d250505e51ffa4fa0827b73d29f381bc5
This commit is contained in:
Colin Cross
2018-11-19 00:12:00 -08:00
committed by android-build-merger

View File

@@ -16,13 +16,22 @@ package cc
import (
"android/soong/android"
"path/filepath"
"runtime"
"strings"
"github.com/google/blueprint"
)
func init() {
pctx.HostBinToolVariable("rsCmd", "llvm-rs-cc")
pctx.VariableFunc("rsCmd", func(ctx android.PackageVarContext) string {
if ctx.Config().UnbundledBuild() {
// Use RenderScript prebuilts for unbundled builds but not PDK builds
return filepath.Join("prebuilts/sdk/tools", runtime.GOOS, "bin/llvm-rs-cc")
} else {
return pctx.HostBinToolPath(ctx, "llvm-rs-cc").String()
}
})
}
var rsCppCmdLine = strings.Replace(`