Merge "Stop using '&' for class loader context." am: b4f9d5c837

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1606853

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I58460a59909565d2986634097674a5792843f9c8
This commit is contained in:
Nicolas Geoffray
2021-03-08 11:57:10 +00:00
committed by Automerger Merge Worker

View File

@@ -288,12 +288,9 @@ func dexpreoptCommand(ctx android.PathContext, globalSoong *GlobalSoongConfig, g
} else {
// Other libraries or APKs for which the exact <uses-library> list is unknown.
// Pass special class loader context to skip the classpath and collision check.
// This will get removed once LOCAL_USES_LIBRARIES is enforced.
// Right now LOCAL_USES_LIBRARIES is opt in, for the case where it's not specified we still default
// to the &.
// We assume the class loader context is empty.
rule.Command().
Text(`class_loader_context_arg=--class-loader-context=\&`).
Text(`class_loader_context_arg=--class-loader-context=PCL[]`).
Text(`stored_class_loader_context_arg=""`)
}