Use soong_javac_wrapper in soong javac compiles

Test: m checkbuild
Change-Id: I0f9ff0a719ac550a011c2878fc51595dc3427aed
This commit is contained in:
Colin Cross
2017-10-17 13:56:52 -07:00
parent fa86d794b0
commit a482065454
4 changed files with 20 additions and 10 deletions

View File

@@ -15,7 +15,6 @@
package config
import (
"path/filepath"
"strings"
_ "github.com/google/blueprint/bootstrap"
@@ -76,12 +75,14 @@ func init() {
pctx.SourcePathVariable("JrtFsJar", "${JavaHome}/lib/jrt-fs.jar")
pctx.SourcePathVariable("JarArgsCmd", "build/soong/scripts/jar-args.sh")
pctx.StaticVariable("SoongZipCmd", filepath.Join("${bootstrap.ToolDir}", "soong_zip"))
pctx.StaticVariable("MergeZipsCmd", filepath.Join("${bootstrap.ToolDir}", "merge_zips"))
pctx.HostBinToolVariable("SoongZipCmd", "soong_zip")
pctx.HostBinToolVariable("MergeZipsCmd", "merge_zips")
pctx.HostBinToolVariable("DxCmd", "dx")
pctx.HostJavaToolVariable("JarjarCmd", "jarjar.jar")
pctx.HostJavaToolVariable("DesugarJar", "desugar.jar")
pctx.HostBinToolVariable("SoongJavacWrapper", "soong_javac_wrapper")
pctx.VariableFunc("JavacWrapper", func(config interface{}) (string, error) {
if override := config.(android.Config).Getenv("JAVAC_WRAPPER"); override != "" {
return override + " ", nil