diff --git a/cc/cmake_snapshot.go b/cc/cmake_snapshot.go index fb2924a07..8f3ad9639 100644 --- a/cc/cmake_snapshot.go +++ b/cc/cmake_snapshot.go @@ -347,8 +347,11 @@ func (m *CmakeSnapshot) GenerateAndroidBuildActions(ctx android.ModuleContext) { if slices.Contains(ignoredSystemLibs, moduleName) { return false // system libs built in-tree for Android } + if dep.IsPrebuilt() { + return false // prebuilts are not supported + } if dep.compiler == nil { - return false // unsupported module type (e.g. prebuilt) + return false // unsupported module type } isAidlModule := dep.compiler.baseCompilerProps().AidlInterface.Lang != ""