diff --git a/cc/cc.go b/cc/cc.go index 51760fca1..30228fb3f 100644 --- a/cc/cc.go +++ b/cc/cc.go @@ -2691,6 +2691,7 @@ func linkageMutator(mctx android.BottomUpMutatorContext) { // Optimize out compiling common .o files twice for static+shared libraries mctx.AddInterVariantDependency(reuseObjTag, shared, static) sharedCompiler.baseCompiler.Properties.Srcs = nil + sharedCompiler.baseCompiler.Properties.Generated_sources = nil } } } else if linker.buildStatic() {