Allow Host cc_object and cc_toolchain_library

In preparation for LinuxBionic.

Bug: 31559095
Test: out/soong/build.ninja is identical
Change-Id: I8e4631ccc3ad5161d76871a43f31d5a4ecbd39c0
This commit is contained in:
Dan Willemsen
2016-11-17 00:30:56 -08:00
parent 00fcbde401
commit 967c6a9b87
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ type objectLinker struct {
} }
func objectFactory() (blueprint.Module, []interface{}) { func objectFactory() (blueprint.Module, []interface{}) {
module := newBaseModule(android.DeviceSupported, android.MultilibBoth) module := newBaseModule(android.HostAndDeviceSupported, android.MultilibBoth)
module.linker = &objectLinker{ module.linker = &objectLinker{
baseLinker: NewBaseLinker(), baseLinker: NewBaseLinker(),
} }

View File

@@ -39,7 +39,7 @@ func (*toolchainLibraryDecorator) linkerDeps(ctx BaseModuleContext, deps Deps) D
} }
func toolchainLibraryFactory() (blueprint.Module, []interface{}) { func toolchainLibraryFactory() (blueprint.Module, []interface{}) {
module, library := NewLibrary(android.DeviceSupported, false, true) module, library := NewLibrary(android.HostAndDeviceSupported, false, true)
toolchainLibrary := &toolchainLibraryDecorator{ toolchainLibrary := &toolchainLibraryDecorator{
libraryDecorator: library, libraryDecorator: library,
} }