summaryrefslogtreecommitdiff
path: root/java/platform_bootclasspath.go
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2021-04-30 01:52:57 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-04-30 01:52:57 +0000
commit1468cc4a1043d492ca41b70b3366612c97af7277 (patch)
treedbe4bd8c830569f83033f5767c9ed0d07d44d8fe /java/platform_bootclasspath.go
parent5983d856c1a77789b4ea0e5eb18e4db00fc8de62 (diff)
parent0dbd02a3ac8e0e3aa3066d8caf44740473847b16 (diff)
Merge "Revert "Fix build failure when building unbundled apps""
Diffstat (limited to 'java/platform_bootclasspath.go')
-rw-r--r--java/platform_bootclasspath.go12
1 files changed, 1 insertions, 11 deletions
diff --git a/java/platform_bootclasspath.go b/java/platform_bootclasspath.go
index 4c91decd4..9f1629428 100644
--- a/java/platform_bootclasspath.go
+++ b/java/platform_bootclasspath.go
@@ -209,17 +209,7 @@ func (b *platformBootclasspathModule) generateHiddenAPIBuildActions(ctx android.
// Don't run any hiddenapi rules if UNSAFE_DISABLE_HIDDENAPI_FLAGS=true. This is a performance
// optimization that can be used to reduce the incremental build time but as its name suggests it
// can be unsafe to use, e.g. when the changes affect anything that goes on the bootclasspath.
- // Instead create some rules to create fake hidden api files.
- config := ctx.Config()
- fakeHiddenApiRules := config.IsEnvTrue("UNSAFE_DISABLE_HIDDENAPI_FLAGS")
-
- // Don't run them in an unbundled build either because the chances are that the modules needed
- // are not available.
- fakeHiddenApiRules = fakeHiddenApiRules || config.UnbundledBuild()
-
- // Don't run them when always using prebuilts as they won't necessarily have the dex boot jars
- // available.
- if fakeHiddenApiRules {
+ if ctx.Config().IsEnvTrue("UNSAFE_DISABLE_HIDDENAPI_FLAGS") {
paths := android.OutputPaths{b.hiddenAPIFlagsCSV, b.hiddenAPIIndexCSV, b.hiddenAPIMetadataCSV}
for _, path := range paths {
ctx.Build(pctx, android.BuildParams{