From a5ea56c6f09c885d2bc9598419456c221ebb6831 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 5 May 2011 20:56:02 -0400 Subject: Introduce the fuzzer crate and make rules --- mk/fuzzer.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 mk/fuzzer.mk (limited to 'mk') diff --git a/mk/fuzzer.mk b/mk/fuzzer.mk new file mode 100644 index 00000000..d07db91a --- /dev/null +++ b/mk/fuzzer.mk @@ -0,0 +1,10 @@ +# At the moment the fuzzer only exists in stage2. That's the first +# stage built by the non-snapshot compiler so it seems a convenient +# stage to work at. + +FUZZER_CRATE := $(S)src/fuzzer/fuzzer.rc +FUZZER_INPUTS := $(wildcard $(addprefix $(S)src/fuzzer/, *.rs)) + +stage2/fuzzer.o: $(FUZZER_CRATE) $(FUZZER_INPUTS) $(SREQ1) + @$(call E, compile: $@) + $(STAGE1) -c -o $@ $< -- cgit v1.2.3