Merge "Only pass "-Xgc:CMC" when building for Android."

This commit is contained in:
Treehugger Robot
2023-06-01 17:59:45 +00:00
committed by Gerrit Code Review

View File

@@ -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")
}