diff options
author | 2023-09-22 03:58:59 +0000 | |
---|---|---|
committer | 2023-09-22 22:05:54 +0000 | |
commit | 41326c1f410bafb909a56f1cf7ca8748ce06cab3 (patch) | |
tree | 0d630e655cf5311ccc525173d4d56fc75c8cee42 /rust/compiler.go | |
parent | df0ed707a5bdbe0e3d20afe9f81acb09e2e887be (diff) |
Revert "support sandboxed rust rules"
Revert submission 2629131-sandbox-rust-inputs
Reason for revert: Fail on android build.
Reverted changes: /q/submissionid:2629131-sandbox-rust-inputs
Change-Id: Ifd9aa46e80a12d8f4ffa0a2daa74b96727cbb7e6
Diffstat (limited to 'rust/compiler.go')
-rw-r--r-- | rust/compiler.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/rust/compiler.go b/rust/compiler.go index 3fa3ccd69..d6c52e8d4 100644 --- a/rust/compiler.go +++ b/rust/compiler.go @@ -82,9 +82,6 @@ type BaseCompilerProperties struct { // not directly used as source files. Crate_root *string `android:"path,arch_variant"` - // Additional data files that are used during compilation only. These are not accessible at runtime. - Compile_data []string `android:"path,arch_variant"` - // name of the lint set that should be used to validate this module. // // Possible values are "default" (for using a sensible set of lints @@ -346,23 +343,6 @@ func (compiler *baseCompiler) compile(ctx ModuleContext, flags Flags, deps PathD panic(fmt.Errorf("baseCrater doesn't know how to crate things!")) } -func (compile *baseCompiler) crateRoot(ctx ModuleContext) android.Path { - if compile.Properties.Crate_root != nil { - return android.PathForModuleSrc(ctx, *compile.Properties.Crate_root) - } - return nil -} - -// compilationSourcesAndData returns a list of files necessary to complete the compilation. -// This includes the rust source files as well as any other data files that -// are referenced during the build. -func (compile *baseCompiler) compilationSourcesAndData(ctx ModuleContext) android.Paths { - return android.PathsForModuleSrc(ctx, android.Concat( - compile.Properties.Srcs, - compile.Properties.Compile_data, - )) -} - func (compiler *baseCompiler) rustdoc(ctx ModuleContext, flags Flags, deps PathDeps) android.OptionalPath { |