diff options
author | Ivan Lozano <ivanlozano@google.com> | 2020-08-04 17:46:22 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-08-04 17:46:22 +0000 |
commit | 89e4882d3764dc5c749a630b22381d9ead761500 (patch) | |
tree | 8d36850db208a3215e70376b338fbce8c959a960 /rust/compiler.go | |
parent | 9b7b8f169a069bd9011fb7a88174044d6c845760 (diff) | |
parent | 26ecd6c5974fcd3ec09792394e7b9cdf32f5f64f (diff) |
Merge "[rust] Add SourceProviders as crates support."
Diffstat (limited to 'rust/compiler.go')
-rw-r--r-- | rust/compiler.go | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/rust/compiler.go b/rust/compiler.go index 83a1f27cc..c2b7e569c 100644 --- a/rust/compiler.go +++ b/rust/compiler.go @@ -81,7 +81,10 @@ type BaseCompilerProperties struct { // list of C static library dependencies Static_libs []string `android:"arch_variant"` - // crate name, required for libraries. This must be the expected extern crate name used in source + // crate name, required for modules which produce Rust libraries: rust_library, rust_ffi and SourceProvider + // modules which create library variants (rust_bindgen). This must be the expected extern crate name used in + // source, and is required to conform to an enforced format matching library output files (if the output file is + // lib<someName><suffix>, the crate_name property must be <someName>). Crate_name string `android:"arch_variant"` // list of features to enable for this crate @@ -120,6 +123,14 @@ type baseCompiler struct { distFile android.OptionalPath } +func (compiler *baseCompiler) Disabled() bool { + return false +} + +func (compiler *baseCompiler) SetDisabled() { + panic("baseCompiler does not implement SetDisabled()") +} + func (compiler *baseCompiler) coverageOutputZipPath() android.OptionalPath { panic("baseCompiler does not implement coverageOutputZipPath()") } |