aboutsummaryrefslogtreecommitdiffstats
path: root/cc/prebuilt.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2016-12-09 14:46:15 -0800
committerColin Cross <ccross@android.com>2016-12-13 14:50:51 -0800
commitab3b7323c4ca7880217d7bb3d422b27c8f716d87 (patch)
tree50180a888427b85060390a1d3d30ba21e7dedfd7 /cc/prebuilt.go
parent3b72295e02986a3341998b02b97f32aa8b283fa7 (diff)
downloadbuild_soong-ab3b7323c4ca7880217d7bb3d422b27c8f716d87.tar.gz
build_soong-ab3b7323c4ca7880217d7bb3d422b27c8f716d87.tar.bz2
build_soong-ab3b7323c4ca7880217d7bb3d422b27c8f716d87.zip
Remove boolean arguments from NewLibrary()
NewLibrary is going to be used for header only libraries. Instead of adding more boolean arguments, replace the existing ones with BuildOnlyStatic and BuildOnlyShared calls on the libraryDecorator returned by NewLibrary. Test: m -j, compare build.ninja Change-Id: Id390b66cbf2a5f0932b32f40a5e18eb9e3852ee7
Diffstat (limited to 'cc/prebuilt.go')
-rw-r--r--cc/prebuilt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/prebuilt.go b/cc/prebuilt.go
index 0a545702..abe03b9d 100644
--- a/cc/prebuilt.go
+++ b/cc/prebuilt.go
@@ -60,7 +60,7 @@ func (p *prebuiltLibraryLinker) link(ctx ModuleContext,
}
func prebuiltSharedLibraryFactory() (blueprint.Module, []interface{}) {
- module, library := NewLibrary(android.HostAndDeviceSupported, true, true)
+ module, library := NewLibrary(android.HostAndDeviceSupported)
module.compiler = nil
prebuilt := &prebuiltLibraryLinker{