summaryrefslogtreecommitdiff
path: root/rust/compiler.go
diff options
context:
space:
mode:
authorMatthew Maurer <mmaurer@google.com>2020-06-25 09:34:12 -0700
committerMatthew Maurer <mmaurer@google.com>2020-07-01 11:27:12 -0700
commitbb3add11046ec3fde6401e42ff480bf589cd5567 (patch)
treeb16139a20252a3a41eaf79e7a84b8e110b1d4b83 /rust/compiler.go
parentc761eeca4829c7c5a1ab24569a414219f595ec63 (diff)
rust: Suppress default sysroot unconditionally
With proper prebuilt modules, we can avoid any rustc implicit sysroot searching. Asd a bonus, this should make rust-project.json generation correctly grab otherwise implicit dependencies. Prebuilt rlibs may include several dependency rlibs. Without a link_dirs attribute, every dependency (even if unexported) would need a separate module. Previously we were casing out on exact structs, which might be OK when libraryDecorator and procMacroDecorator were the only possibilities, but repeating the logic for three types is too much. Using an interface makes this logic scale better. Bug: 159591910 Test: cd external/rust; mma; m crosvm.experimental Change-Id: Ia1124e09f48cd05e39f094bbcb988622ebd2272f
Diffstat (limited to 'rust/compiler.go')
-rw-r--r--rust/compiler.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/rust/compiler.go b/rust/compiler.go
index bda2cec17..92a3b07f2 100644
--- a/rust/compiler.go
+++ b/rust/compiler.go
@@ -103,8 +103,6 @@ type BaseCompilerProperties struct {
type baseCompiler struct {
Properties BaseCompilerProperties
- depFlags []string
- linkDirs []string
coverageFile android.Path //rustc generates a single gcno file
// Install related