Merge "Revert "[cc_fuzz] Revert 'disable LTO' patches."" am: ff17a1bd66
Original change: https://android-review.googlesource.com/c/platform/build/+/2004384 Change-Id: I37e5fcc920a6fa9e4b64d4a63aaa881bfca82ce6
This commit is contained in:
@@ -293,6 +293,12 @@ 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)),)
|
||||
|
Reference in New Issue
Block a user