diff options
author | Ivan Lozano <ivanlozano@google.com> | 2020-12-14 11:27:52 -0500 |
---|---|---|
committer | Ivan Lozano <ivanlozano@google.com> | 2021-01-08 08:53:46 -0500 |
commit | 3968d8f6780b33ab26c7f9ec06e2fdb6c0f7d26f (patch) | |
tree | 8be1af1f10b702979cbc6ca12b0d56f31e6f92d4 /rust/compiler.go | |
parent | c7ca43ec929e9bc4fda85c7f5f48361f0ffa30e7 (diff) |
Refactor CC to prep for Rust sanitizable modules.
Adds a PlatformSanitizable interface which both CC and Rust can
implement so that the sanitizer mutators in CC can sanitize Rust
shared/static libraries appropriately.
Bug: 147140513
Test: m nothing
Change-Id: Ib31103b6c4902a4d5df2565c0d7c981298d100a3
Diffstat (limited to 'rust/compiler.go')
-rw-r--r-- | rust/compiler.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/compiler.go b/rust/compiler.go index ee88a273f..bcea6cccc 100644 --- a/rust/compiler.go +++ b/rust/compiler.go @@ -236,6 +236,10 @@ func (compiler *baseCompiler) compile(ctx ModuleContext, flags Flags, deps PathD panic(fmt.Errorf("baseCrater doesn't know how to crate things!")) } +func (compiler *baseCompiler) isDependencyRoot() bool { + return false +} + func (compiler *baseCompiler) compilerDeps(ctx DepsContext, deps Deps) Deps { deps.Rlibs = append(deps.Rlibs, compiler.Properties.Rlibs...) deps.Dylibs = append(deps.Dylibs, compiler.Properties.Dylibs...) |