summaryrefslogtreecommitdiff
path: root/rust/compiler.go
diff options
context:
space:
mode:
author Sam Delmerico <delmerico@google.com> 2023-09-08 20:46:55 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-09-08 20:46:55 +0000
commit1d3740a274114151b5bbe8cfe24c806d50fbcc8f (patch)
treeda263e6aaca05edb3b82ff6c6bc3f4f6be9a2794 /rust/compiler.go
parent096b7e83bcfeff667852c75ce0da1e4d510e2750 (diff)
parent400749d1f02c1751dbcaee540a17da945a513f62 (diff)
Merge changes from topic "revert-2605644-rulebuilder-ninja-vars-OAAWYCDDLT" into main
* changes: Revert "add rust_toolchain_rustc_prebuilt module type" Revert "add crate_root property to rust modules" Revert "allow Ninja variables in RuleBuilder API"
Diffstat (limited to 'rust/compiler.go')
-rw-r--r--rust/compiler.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/rust/compiler.go b/rust/compiler.go
index d6c52e8d4..e6a7a9356 100644
--- a/rust/compiler.go
+++ b/rust/compiler.go
@@ -73,15 +73,6 @@ type BaseCompilerProperties struct {
// If no source file is defined, a single generated source module can be defined to be used as the main source.
Srcs []string `android:"path,arch_variant"`
- // Entry point that is passed to rustc to begin the compilation. E.g. main.rs or lib.rs.
- // When this property is set,
- // * sandboxing is enabled for this module, and
- // * the srcs attribute is interpreted as a list of all source files potentially
- // used in compilation, including the entrypoint, and
- // * compile_data can be used to add additional files used in compilation that
- // not directly used as source files.
- Crate_root *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
@@ -520,8 +511,6 @@ func srcPathFromModuleSrcs(ctx ModuleContext, srcs []string) (android.Path, andr
ctx.PropertyErrorf("srcs", "only a single generated source module can be defined without a main source file.")
}
- // TODO: b/297264540 - once all modules are sandboxed, we need to select the proper
- // entry point file from Srcs rather than taking the first one
paths := android.PathsForModuleSrc(ctx, srcs)
return paths[srcIndex], paths[1:]
}