Skip to content

Commit

Permalink
Add gltffuzz target for convenience
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zeux committed Oct 26, 2023
1 parent 3472099 commit 1f7db0f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@

Expand Down

0 comments on commit 1f7db0f

Please sign in to comment.