summaryrefslogtreecommitdiff
path: root/rust/compiler.go
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2021-04-01 09:49:36 -0400
committerIvan Lozano <ivanlozano@google.com>2021-05-12 14:01:10 -0400
commitd7586b6526f6db839d368587fb58574db9b7042a (patch)
treef391b4f50b010e8fad32bfd0492c362a0b95482b /rust/compiler.go
parentc8aeb00a9cb273acc4b4f92beddf592642cc3e5e (diff)
Refactor vendor snapshot to use LinkableInterface.
Refactors the vendor snapshot support to use the LinkableInterface so that support can be extended to Rust. This CL does not add vendor snapshot support for Rust; that is left for a follow-on CL. Bug: 184042776 Test: m nothing Change-Id: Id0c4970ca00053484a52677d182153cbc454c301
Diffstat (limited to 'rust/compiler.go')
-rw-r--r--rust/compiler.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/compiler.go b/rust/compiler.go
index a3f02c0d4..1598ebf9a 100644
--- a/rust/compiler.go
+++ b/rust/compiler.go
@@ -341,6 +341,11 @@ func (compiler *baseCompiler) crateName() string {
return compiler.Properties.Crate_name
}
+func (compiler *baseCompiler) everInstallable() bool {
+ // Most modules are installable, so return true by default.
+ return true
+}
+
func (compiler *baseCompiler) installDir(ctx ModuleContext) android.InstallPath {
dir := compiler.dir
if ctx.toolchain().Is64Bit() && compiler.dir64 != "" {