Merge "Fix the order of suffix in Android.bp" into main am: 09de1731fd

Original change: https://android-review.googlesource.com/c/platform/development/+/2753590

Change-Id: I9fe5d3a27228d72c8e43a10d3de55f0d9650d1c0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-09-18 22:21:16 +00:00
committed by Automerger Merge Worker

View File

@@ -828,11 +828,11 @@ class Crate(object):
# TODO(chh): should this be rust_library[_host]?
# Assuming that Cargo.toml do not use both 'lib' and 'rlib',
# because we map them both to rlib.
self.module_type = 'rust_library' + rlib + host
self.module_type = 'rust_library' + host + rlib
self.stem = 'lib' + self.crate_name + suffix + self.runner.args.name_suffix
self.module_name = altered_name(self.stem)
elif crate_type == 'rlib': # rust_library[_host]
self.module_type = 'rust_library' + rlib + host
self.module_type = 'rust_library' + host + rlib
self.stem = 'lib' + self.crate_name + suffix + self.runner.args.name_suffix
self.module_name = altered_name(self.stem)
elif crate_type == 'dylib': # rust_library[_host]_dylib