From 3968d8f6780b33ab26c7f9ec06e2fdb6c0f7d26f Mon Sep 17 00:00:00 2001 From: Ivan Lozano Date: Mon, 14 Dec 2020 11:27:52 -0500 Subject: 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 --- rust/compiler.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rust/compiler.go') 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...) -- cgit v1.2.3-59-g8ed1b