summaryrefslogtreecommitdiff
path: root/rust/rust.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2024-10-30 21:45:09 +0000
committer Spandan Das <spandandas@google.com> 2024-10-31 17:43:57 +0000
commit034af2c2e733f390ea6506f0391ac4c5c1c8221b (patch)
tree845975a3efe953dd0ef25a84e5846a251f7040ff /rust/rust.go
parent840880cf7627d2342f78c9b25419eaf059b43799 (diff)
Distinguish HideFromMake from SkipInstall
Invoking HideFromMake today would also make the module uninstallable. This was a safe assumption since the packaging sytem was in build/make - if a module is not visible to make, it is also uninstallable. With the advent of soong packaging system, this might not always be true. This CL disentangles SkipInstall from HideFromMake. This CL also sets SkipInstall on modules where the installation rules should not be emitted, e.g. to prevent duplicate installation rules between platform and apex variants of libraries Test: m nothing --no-skip-soong-tests Test: no diff in aosp_cf_x86_64_phone's system file_list.txt Change-Id: I80cdd60d2ebdba22fd37e748eb00242cc412bda1
Diffstat (limited to 'rust/rust.go')
-rw-r--r--rust/rust.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/rust.go b/rust/rust.go
index 6b91ccb25..9e06cd437 100644
--- a/rust/rust.go
+++ b/rust/rust.go
@@ -974,6 +974,7 @@ func (mod *Module) GenerateAndroidBuildActions(actx android.ModuleContext) {
// side dependencies. In particular, proc-macros need to be captured in the
// host snapshot.
mod.HideFromMake()
+ mod.SkipInstall()
} else if !mod.installable(apexInfo) {
mod.SkipInstall()
}