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
This commit is contained in:
Zach Riggle 2018-01-03 13:32:14 -06:00
parent afb3579213
commit bcfa37e317
1 changed files with 5 additions and 1 deletions

View File

@ -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)