diff options
Diffstat (limited to 'cc')
-rw-r--r-- | cc/sanitize.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/sanitize.go b/cc/sanitize.go index 447c5b42..6ab66997 100644 --- a/cc/sanitize.go +++ b/cc/sanitize.go @@ -161,6 +161,11 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) { } } + if !ctx.AConfig().EnableCFI() { + s.Cfi = nil + s.Diag.Cfi = nil + } + if ctx.staticBinary() { s.Address = nil s.Coverage = nil |