rust: Test with full Rust “crate_type”

What we call “static” in Soong is called “staticlib” in Rust, see
https://doc.rust-lang.org/reference/linkage.html for details.

Bug: 254469782
Test: atest
Change-Id: I65bba511d3ce8e7e53c6a1de3e77e30568934ce7
This commit is contained in:
Martin Geisler 2022-11-18 11:52:57 +01:00
parent b43191c90c
commit b8a4c2cad1

View file

@ -45,7 +45,7 @@ func TestLibraryVariants(t *testing.T) {
rlibCrateType := "rlib"
dylibCrateType := "dylib"
sharedCrateType := "cdylib"
staticCrateType := "static"
staticCrateType := "staticlib"
// Test crate type for rlib is correct.
if !strings.Contains(libfooRlib.Args["rustcFlags"], "crate-type="+rlibCrateType) {