summaryrefslogtreecommitdiff
path: root/rust/compiler.go
diff options
context:
space:
mode:
author Ivan Lozano <ivanlozano@google.com> 2021-11-10 21:34:21 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-11-10 21:34:21 +0000
commitaa1a9e4086705596436dfb8de492b63599034e01 (patch)
tree02192f5149d322384e4259f82d254b96ba55f22e /rust/compiler.go
parentf8ff9cf68c8acc0339cfb0c1ef6b4d92a8b06074 (diff)
parent8d10fc39afdda6a9c3f27f3ed0999db9c8c2199a (diff)
Merge "rust: Refactor stripped output file path"
Diffstat (limited to 'rust/compiler.go')
-rw-r--r--rust/compiler.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/rust/compiler.go b/rust/compiler.go
index cada9854a..293b17b50 100644
--- a/rust/compiler.go
+++ b/rust/compiler.go
@@ -181,7 +181,11 @@ type baseCompiler struct {
sanitize *sanitize
distFile android.OptionalPath
- // Stripped output file. If Valid(), this file will be installed instead of outputFile.
+
+ // unstripped output file.
+ unstrippedOutputFile android.Path
+
+ // stripped output file.
strippedOutputFile android.OptionalPath
// If a crate has a source-generated dependency, a copy of the source file
@@ -340,6 +344,10 @@ func (compiler *baseCompiler) CargoPkgVersion() string {
return String(compiler.Properties.Cargo_pkg_version)
}
+func (compiler *baseCompiler) unstrippedOutputFilePath() android.Path {
+ return compiler.unstrippedOutputFile
+}
+
func (compiler *baseCompiler) strippedOutputFilePath() android.OptionalPath {
return compiler.strippedOutputFile
}