diff options
| author | 2020-06-17 12:28:06 +0000 | |
|---|---|---|
| committer | 2020-06-17 12:28:06 +0000 | |
| commit | d82599033680ac26c4ffce2373ddce5f67c990d1 (patch) | |
| tree | 32ef3b8a55fbaf70275368b86fce1aa3af02e540 /rust/compiler.go | |
| parent | 6116ffdcf5fac324afcb1c6293f472cd636da025 (diff) | |
| parent | 8a23fa48191b7accc14963ff1870c3e192467dbd (diff) | |
Merge "[Rust] Remove unused variables and deduplicate."
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 { |