rust: Refactor staticStd to stdLinkage

Instead of returning a boolean, return an enum value to improve
readability and provide greater flexibility for future modifications.

Bug: 168729404
Test: Soong tests pass
Change-Id: Iddcdae8c34be09e476404382e43d1ea5935bae65
This commit is contained in:
Ivan Lozano
2020-09-28 13:22:45 -04:00
parent 11200870b0
commit dd0554722a
5 changed files with 28 additions and 13 deletions

View File

@@ -134,6 +134,6 @@ func RustTestHostFactory() android.Module {
return module.Init()
}
func (test *testDecorator) staticStd(ctx *depsContext) bool {
return true
func (test *testDecorator) stdLinkage(ctx *depsContext) RustLinkage {
return RlibLinkage
}