rust: Fix Properties inheritance for prebuilts am: 128f53b3b4

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1353063

Change-Id: Iab5949e9b76700fa9d565d160cd9d8a9cb8ee47c
This commit is contained in:
Matthew Maurer 2020-07-01 22:41:24 +00:00 committed by Automerger Merge Worker
commit 60d41b05d4

View file

@ -48,12 +48,11 @@ func NewPrebuiltDylib(hod android.HostOrDeviceSupported) (*Module, *prebuiltLibr
libraryDecorator: library,
}
module.compiler = prebuilt
module.AddProperties(&library.Properties)
return module, prebuilt
}
func (prebuilt *prebuiltLibraryDecorator) compilerProps() []interface{} {
return append(prebuilt.baseCompiler.compilerProps(),
return append(prebuilt.libraryDecorator.compilerProps(),
&prebuilt.Properties)
}