diff options
Diffstat (limited to 'rust/compiler.go')
-rw-r--r-- | rust/compiler.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rust/compiler.go b/rust/compiler.go index c92182420..586063e91 100644 --- a/rust/compiler.go +++ b/rust/compiler.go @@ -96,7 +96,11 @@ type BaseCompilerProperties struct { // list of C shared library dependencies Shared_libs []string `android:"arch_variant"` - // list of C static library dependencies + // list of C static library dependencies. Note, static libraries prefixed by "lib" will be passed to rustc + // along with "-lstatic=<name>". This will bundle the static library into rlib/static libraries so dependents do + // not need to also declare the static library as a dependency. Static libraries which are not prefixed by "lib" + // cannot be passed to rustc with this flag and will not be bundled into rlib/static libraries, and thus must + // be redeclared in dependents. Static_libs []string `android:"arch_variant"` // crate name, required for modules which produce Rust libraries: rust_library, rust_ffi and SourceProvider |