Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcfa37e3 authored by Zach Riggle's avatar Zach Riggle
Browse files

Add the honggfuzz binary as a dependency and keep symbols

This way honggfuzz is rebuilt if it has changed, when building a fuzzer.

Separately, keeping the symbols in the fuzzer binary is useful for crash triage.

Change-Id: I2fc5ca64ccf66d084158580da74e5397aa61c250
parent afb35792
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ ifeq ($(my_fuzzer),libFuzzer)
LOCAL_STATIC_LIBRARIES += libFuzzer
else ifeq ($(my_fuzzer),honggfuzz)
LOCAL_STATIC_LIBRARIES += honggfuzz_libhfuzz

LOCAL_REQUIRED_MODULES += honggfuzz
LOCAL_LDFLAGS += \
        "-Wl,--wrap=strcmp" \
        "-Wl,--wrap=strcasecmp" \
@@ -74,4 +74,8 @@ LOCAL_MULTILIB := both
endif
endif

ifndef LOCAL_STRIP_MODULE
LOCAL_STRIP_MODULE := keep_symbols
endif

include $(BUILD_EXECUTABLE)