diff options
author | Colin Cross <ccross@android.com> | 2016-12-09 14:46:15 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2016-12-13 14:50:51 -0800 |
commit | ab3b7323c4ca7880217d7bb3d422b27c8f716d87 (patch) | |
tree | 50180a888427b85060390a1d3d30ba21e7dedfd7 /cc/test.go | |
parent | 3b72295e02986a3341998b02b97f32aa8b283fa7 (diff) | |
download | build_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/test.go')
-rw-r--r-- | cc/test.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -263,7 +263,7 @@ func (test *testLibrary) linkerFlags(ctx ModuleContext, flags Flags) Flags { } func NewTestLibrary(hod android.HostOrDeviceSupported) *Module { - module, library := NewLibrary(android.HostAndDeviceSupported, true, true) + module, library := NewLibrary(android.HostAndDeviceSupported) library.baseInstaller = NewTestInstaller() test := &testLibrary{ testDecorator: testDecorator{ |