Simplify compileObjs
None of the direct users of compileObjs were using any of its
complexity (generated sources, excluded sources, extra sources). Move
the complexity back in to baseCompiler.compile.
Test: m -j
Change-Id: I2e59d216682c00dd12a1395cf2448827d1c48023
diff --git a/cc/ndk_library.go b/cc/ndk_library.go
index 37ce268..6b0c325 100644
--- a/cc/ndk_library.go
+++ b/cc/ndk_library.go
@@ -227,12 +227,8 @@
)
subdir := ""
- srcs := []string{}
- excludeSrcs := []string{}
- extraSrcs := []android.Path{stubSrcPath}
- extraDeps := []android.Path{}
- return compileObjs(ctx, flags, subdir, srcs, excludeSrcs,
- extraSrcs, extraDeps)
+ srcs := []android.Path{stubSrcPath}
+ return compileObjs(ctx, flagsToBuilderFlags(flags), subdir, srcs, nil)
}
func (linker *stubDecorator) linkerDeps(ctx BaseModuleContext, deps Deps) Deps {