diff options
| author | 2023-02-07 02:55:02 +0000 | |
|---|---|---|
| committer | 2023-02-07 02:55:02 +0000 | |
| commit | 1bb18bb2aca0a7a53cb6784e1bf49bea94c936d1 (patch) | |
| tree | ad7f14eb4fe82258ed6e0755bf09b815ba186bc7 | |
| parent | e732271cc59106ddccd525ce476f952b39414a96 (diff) | |
| parent | c7a4688b9dcc88b40d4aeed2ed08186f8ed6ed6a (diff) | |
Merge "Symbol files for Rust binaries in APEXes are exported"
| -rw-r--r-- | apex/androidmk.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apex/androidmk.go b/apex/androidmk.go index 7babd45ba..12faf2242 100644 --- a/apex/androidmk.go +++ b/apex/androidmk.go @@ -23,6 +23,7 @@ import ( "android/soong/android" "android/soong/cc" "android/soong/java" + "android/soong/rust" "github.com/google/blueprint/proptools" ) @@ -256,6 +257,10 @@ func (a *apexBundle) androidMkForFiles(w io.Writer, apexBundleName, apexName, mo if ccMod.CoverageOutputFile().Valid() { fmt.Fprintln(w, "LOCAL_PREBUILT_COVERAGE_ARCHIVE :=", ccMod.CoverageOutputFile().String()) } + } else if rustMod, ok := fi.module.(*rust.Module); ok { + if rustMod.UnstrippedOutputFile() != nil { + fmt.Fprintln(w, "LOCAL_SOONG_UNSTRIPPED_BINARY :=", rustMod.UnstrippedOutputFile().String()) + } } fmt.Fprintln(w, "include $(BUILD_SYSTEM)/soong_cc_rust_prebuilt.mk") default: |