summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2023-06-01 17:59:45 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-06-01 17:59:45 +0000
commitf618c60df65640241ddde6e495e716a67dbdc760 (patch)
tree3bf8299ae533b219b203d66b7378b86bb48f4db6
parent5b7035f850612aecfd67b7099e62ce82659b3041 (diff)
parent225c4767ac4d19fed88f481edcafe5a220ca9ea0 (diff)
Merge "Only pass "-Xgc:CMC" when building for Android."
-rw-r--r--java/dexpreopt_bootjars.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/dexpreopt_bootjars.go b/java/dexpreopt_bootjars.go
index 116c833e0..35f60979f 100644
--- a/java/dexpreopt_bootjars.go
+++ b/java/dexpreopt_bootjars.go
@@ -816,7 +816,7 @@ func buildBootImageVariant(ctx android.ModuleContext, image *bootImageVariant, p
cmd.FlagWithArg("--instruction-set-features=", global.InstructionSetFeatures[arch])
}
- if global.EnableUffdGc {
+ if global.EnableUffdGc && image.target.Os == android.Android {
cmd.Flag("--runtime-arg").Flag("-Xgc:CMC")
}