From 2912b901ffb1eb48f88089311e1c0bd033b1500e Mon Sep 17 00:00:00 2001 From: Mitch Phillips Date: Tue, 8 Feb 2022 10:53:23 -0800 Subject: [PATCH] [cc_fuzz] Revert 'disable LTO' patches. The toolchain no longer has a problem with sancov + LTO. Bug: 131771163 Test: make haiku Change-Id: Ic509b00a1c465ce9fb18cf8fcfe8fc76270b0857 --- core/config_sanitizers.mk | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/config_sanitizers.mk b/core/config_sanitizers.mk index a0ff11951a..419dc6ea19 100644 --- a/core/config_sanitizers.mk +++ b/core/config_sanitizers.mk @@ -293,12 +293,6 @@ ifneq ($(filter fuzzer,$(my_sanitize)),) # information, not to link against the fuzzer main(). my_sanitize := $(filter-out fuzzer,$(my_sanitize)) my_sanitize += fuzzer-no-link - - # TODO(b/131771163): Disable LTO for fuzzer builds. Note that Cfi causes - # dependency on LTO. - my_sanitize := $(filter-out cfi,$(my_sanitize)) - my_cflags += -fno-lto - my_ldflags += -fno-lto endif ifneq ($(filter integer_overflow,$(my_sanitize)),)