diff options
author | Ivan Lozano <ivanlozano@google.com> | 2020-06-16 10:26:57 -0400 |
---|---|---|
committer | Ivan Lozano <ivanlozano@google.com> | 2020-06-16 10:28:25 -0400 |
commit | 8a23fa48191b7accc14963ff1870c3e192467dbd (patch) | |
tree | 9ea0ff26cda97fcc686070c503e7f345483e493a /rust/compiler.go | |
parent | 2752d926a9aa78f68c0713af6ecda11b5b02b583 (diff) |
[Rust] Remove unused variables and deduplicate.
Bug: 158731826
Test: cd external/rust/crates; mma
Change-Id: I8c9e5cfeaf941b9676b92451b227c15db9a41bbc
Diffstat (limited to 'rust/compiler.go')
-rw-r--r-- | rust/compiler.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/rust/compiler.go b/rust/compiler.go index 5f098bc04..efc1ce4ca 100644 --- a/rust/compiler.go +++ b/rust/compiler.go @@ -53,6 +53,9 @@ const ( ) type BaseCompilerProperties struct { + // path to the source file that is the main entry point of the program (e.g. main.rs or lib.rs) + Srcs []string `android:"path,arch_variant"` + // whether to pass "-D warnings" to rustc. Defaults to true. Deny_warnings *bool @@ -100,17 +103,10 @@ type BaseCompilerProperties struct { } type baseCompiler struct { - Properties BaseCompilerProperties - pathDeps android.Paths - rustFlagsDeps android.Paths - linkFlagsDeps android.Paths - flags string - linkFlags string - depFlags []string - linkDirs []string - edition string - src android.Path //rustc takes a single src file - coverageFile android.Path //rustc generates a single gcno file + Properties BaseCompilerProperties + depFlags []string + linkDirs []string + coverageFile android.Path //rustc generates a single gcno file // Install related dir string @@ -119,6 +115,10 @@ type baseCompiler struct { relative string path android.InstallPath location installLocation + + coverageOutputZipFile android.OptionalPath + unstrippedOutputFile android.Path + distFile android.OptionalPath } func (compiler *baseCompiler) coverageOutputZipPath() android.OptionalPath { |