Revert "Add BUILD_BROKEN_DONT_CHECK_SYSTEMSDK"

Revert submission 2897682-dont_limit_systemsdk

Reason for revert: blocking revert for 318695834

Bug:318695834

Reverted changes: /q/submissionid:2897682-dont_limit_systemsdk

Change-Id: I4cf7268cba21c7b81b406c91240bb98190fa4ebc
This commit is contained in:
Sebastian Pickl
2024-01-04 19:01:27 +00:00
committed by Gerrit Code Review
parent 87312a2fac
commit fbf1b5e7f1
3 changed files with 1 additions and 6 deletions

View File

@@ -306,7 +306,7 @@ func SdkSpecFromWithConfig(config Config, str string) SdkSpec {
func (s SdkSpec) ValidateSystemSdk(ctx EarlyModuleContext) bool {
// Do some early checks. This check is currently only for Java modules. And our only concern
// is the use of "system" SDKs.
if !isJava(ctx.Module()) || s.Kind != SdkSystem || ctx.DeviceConfig().BuildBrokenDontCheckSystemSdk() {
if !isJava(ctx.Module()) || s.Kind != SdkSystem {
return true
}