Merge "[cc_fuzz] Revert 'disable LTO' patches."

This commit is contained in:
Treehugger Robot
2022-03-01 23:43:04 +00:00
committed by Gerrit Code Review
2 changed files with 0 additions and 18 deletions

View File

@@ -82,12 +82,6 @@ func (lto *lto) useClangLld(ctx BaseModuleContext) bool {
}
func (lto *lto) flags(ctx BaseModuleContext, flags Flags) Flags {
// TODO(b/131771163): Disable LTO when using explicit fuzzing configurations.
// LTO breaks fuzzer builds.
if inList("-fsanitize=fuzzer-no-link", flags.Local.CFlags) {
return flags
}
if lto.LTO(ctx) {
var ltoCFlag string
var ltoLdFlag string