[cc_fuzz] Revert 'disable LTO' patches.
The toolchain no longer has a problem with sancov + LTO. Bug: 131771163 Test: make haiku Change-Id: If85931f092c41336a8a5e0e7999ad39dd8ec3daf
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user