From 1f7db0f6dec945d0e896e07fae296c8f38d9d7cb Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Thu, 26 Oct 2023 09:47:12 -0700 Subject: [PATCH] Add gltffuzz target for convenience This doesn't touch the top-level gltfpack executable which makes it easier to work on gltfpack while the fuzzer is working, and launches the fuzzer automatically. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 8b1490d21..a07ea1c20 100644 --- a/Makefile +++ b/Makefile @@ -112,6 +112,13 @@ js: js/meshopt_decoder.js js/meshopt_decoder.module.js js/meshopt_encoder.js js/ gltfpack: $(BUILD)/gltfpack ln -fs $^ $@ +ifeq ($(config),fuzz) +gltffuzz: $(BUILD)/gltfpack + cp $^ $@ + mkdir -p /tmp/gltffuzz + ./gltffuzz /tmp/gltffuzz -fork=16 -dict=gltf/fuzz.dict -ignore_crashes=1 -max_len=32768 +endif + $(BUILD)/gltfpack: $(GLTFPACK_OBJECTS) $(LIBRARY) $(CXX) $^ $(LDFLAGS) -o $@