summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2018-12-18 22:46:24 -0800
committerColin Cross <ccross@android.com>2018-12-18 22:46:24 -0800
commit1f367bfe8b63fd9a27ee361b625aec6458ab102c (patch)
treefc8634affb1ab660160063a5c962092656f5f6c9 /java/java.go
parent539f409d783b7f9513a9459b694f4250a9906a83 (diff)
Add a flag to allow unbundled builds to build SDKs from source
Mainline modules are tightly coupled to the platform, and should build against the current SDK from source and not prebuilts. Add a flag UNBUNDLED_BUILD_SDKS_FROM_SOURCE to specify that a TARGET_BUILD_APPS build should build the current SDK instead of using the prebuilts. Bug: 121194841 Bug: 121231426 Test: no change to out/build-aosp_sailfish.ninja Test: forrest unbundled build Test: forrest master apps build Test: forrest mainline modules build Change-Id: I45a40a335483dae2fe192721df9b31bdbab97ee5
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go
index aea1ef90d..6eae05cb1 100644
--- a/java/java.go
+++ b/java/java.go
@@ -555,7 +555,7 @@ func decodeSdkDep(ctx android.BaseContext, sdkContext sdkContext) sdkDep {
return ret
}
- if ctx.Config().UnbundledBuild() && v != "" {
+ if ctx.Config().UnbundledBuildPrebuiltSdks() && v != "" {
return toPrebuilt(v)
}