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/binary.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/binary.go')
-rw-r--r-- | rust/binary.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/binary.go b/rust/binary.go index c2d97f3ab..ca07d07c1 100644 --- a/rust/binary.go +++ b/rust/binary.go @@ -164,3 +164,7 @@ func (binary *binaryDecorator) stdLinkage(ctx *depsContext) RustLinkage { } return binary.baseCompiler.stdLinkage(ctx) } + +func (binary *binaryDecorator) isDependencyRoot() bool { + return true +} |