diff options
Diffstat (limited to 'rust/test.go')
-rw-r--r-- | rust/test.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/rust/test.go b/rust/test.go index f616c06f3..416c557d8 100644 --- a/rust/test.go +++ b/rust/test.go @@ -57,7 +57,14 @@ func (test *testDecorator) nativeCoverage() bool { } func NewRustTest(hod android.HostOrDeviceSupported) (*Module, *testDecorator) { - module := newModule(hod, android.MultilibFirst) + // Build both 32 and 64 targets for device tests. + // Cannot build both for host tests yet if the test depends on + // something like proc-macro2 that cannot be built for both. + multilib := android.MultilibBoth + if hod != android.DeviceSupported && hod != android.HostAndDeviceSupported { + multilib = android.MultilibFirst + } + module := newModule(hod, multilib) test := &testDecorator{ binaryDecorator: &binaryDecorator{ |