From 979162601e1e1b8fb678bb158c66604de46405d3 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 9 Dec 2016 14:47:29 -0800 Subject: [PATCH] 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: I832627938f3fbc8cc1565c695048a5b5c3553090 --- build/art.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/art.go b/build/art.go index ccaa11dfe..0af1767fd 100644 --- a/build/art.go +++ b/build/art.go @@ -259,7 +259,7 @@ func artDefaultsFactory() (blueprint.Module, []interface{}) { } func artLibrary() (blueprint.Module, []interface{}) { - library, _ := cc.NewLibrary(android.HostAndDeviceSupported, true, true) + library, _ := cc.NewLibrary(android.HostAndDeviceSupported) module, props := library.Init() props = installCodegenCustomizer(module, props, true) -- 2.11.0