rust: Make dylib-std the canonical rlib form

This removes the dylib-std suffix from rlib variants which link against
libstd dynamically. This is by far the common case.

This fixes an issue where 'm <rust_library_rlib>' would fail since Make
would expect the suffix to be included (e.g. 'm libfoo.dylib-std').

Bug: 173312517
Bug: 268086496
Test: m <rust_library_rlib> # without a suffix
Change-Id: I1e5778c57468302a8d672d5eb540047d8bb79314
This commit is contained in:
Ivan Lozano
2023-06-15 14:21:09 -04:00
parent cbaa0d6eb9
commit 4df0257fe5
3 changed files with 5 additions and 7 deletions

View File

@@ -25,8 +25,7 @@ import (
)
var (
DylibStdlibSuffix = ".dylib-std"
RlibStdlibSuffix = ".rlib-std"
RlibStdlibSuffix = ".rlib-std"
)
func init() {
@@ -756,7 +755,6 @@ func LibstdMutator(mctx android.BottomUpMutatorContext) {
dylib.Disable()
}
rlib.Properties.RustSubName += RlibStdlibSuffix
dylib.Properties.RustSubName += DylibStdlibSuffix
}
}
}