Merge "Update soong for new lint version"

This commit is contained in:
Pedro Loureiro 2021-04-07 09:30:06 +00:00 committed by Gerrit Code Review
commit 9537d594ce
2 changed files with 3 additions and 1 deletions

View File

@ -347,7 +347,7 @@ func (l *linter) lint(ctx android.ModuleContext) {
cmd := rule.Command() cmd := rule.Command()
cmd.Flag("JAVA_OPTS=-Xmx3072m"). cmd.Flag(`JAVA_OPTS="-Xmx3072m --add-opens java.base/java.util=ALL-UNNAMED"`).
FlagWithArg("ANDROID_SDK_HOME=", lintPaths.homeDir.String()). FlagWithArg("ANDROID_SDK_HOME=", lintPaths.homeDir.String()).
FlagWithInput("SDK_ANNOTATIONS=", annotationsZipPath). FlagWithInput("SDK_ANNOTATIONS=", annotationsZipPath).
FlagWithInput("LINT_OPTS=-DLINT_API_DATABASE=", apiVersionsXMLPath) FlagWithInput("LINT_OPTS=-DLINT_API_DATABASE=", apiVersionsXMLPath)

View File

@ -76,3 +76,5 @@
# TODO(b/158390965): remove this when lint doesn't crash # TODO(b/158390965): remove this when lint doesn't crash
--disable_check HardcodedDebugMode --disable_check HardcodedDebugMode
--warning_check QueryAllPackagesPermission