Don't export flags from SourceProvider variants
There is no need to export the linkdirs from the SourceProvider variant. Remove them to reduce differences in build.ninja from a later patch that moves the flag exporting into compile(), which isn't called by the SourceProvider variant. Test: m checkbuild Change-Id: I9c4d3a336a07cb9074376303bfa277c05d893b98
This commit is contained in:
@@ -695,6 +695,11 @@ func (mod *Module) GenerateAndroidBuildActions(actx android.ModuleContext) {
|
|||||||
if mod.compiler.(libraryInterface).source() {
|
if mod.compiler.(libraryInterface).source() {
|
||||||
mod.sourceProvider.GenerateSource(ctx, deps)
|
mod.sourceProvider.GenerateSource(ctx, deps)
|
||||||
mod.sourceProvider.setSubName(ctx.ModuleSubDir())
|
mod.sourceProvider.setSubName(ctx.ModuleSubDir())
|
||||||
|
if lib, ok := mod.compiler.(*libraryDecorator); ok {
|
||||||
|
lib.flagExporter.linkDirs = nil
|
||||||
|
lib.flagExporter.linkObjects = nil
|
||||||
|
lib.flagExporter.depFlags = nil
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
sourceMod := actx.GetDirectDepWithTag(mod.Name(), sourceDepTag)
|
sourceMod := actx.GetDirectDepWithTag(mod.Name(), sourceDepTag)
|
||||||
sourceLib := sourceMod.(*Module).compiler.(*libraryDecorator)
|
sourceLib := sourceMod.(*Module).compiler.(*libraryDecorator)
|
||||||
|
Reference in New Issue
Block a user