diff options
| author | Brian Anderson <[email protected]> | 2011-05-05 22:44:28 -0400 |
|---|---|---|
| committer | Brian Anderson <[email protected]> | 2011-05-10 21:31:14 -0400 |
| commit | aa40d61d5d8299ba72b390cabe4994bbf985c14c (patch) | |
| tree | 9c1ea921aa5382fefbe984f9ccc305d860d6fe06 /mk | |
| parent | Add meta info to rustc.rc (diff) | |
| download | rust-aa40d61d5d8299ba72b390cabe4994bbf985c14c.tar.xz rust-aa40d61d5d8299ba72b390cabe4994bbf985c14c.zip | |
Link fuzzer to the rustc crate
Diffstat (limited to 'mk')
| -rw-r--r-- | mk/fuzzer.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mk/fuzzer.mk b/mk/fuzzer.mk index d07db91a..b6869323 100644 --- a/mk/fuzzer.mk +++ b/mk/fuzzer.mk @@ -5,6 +5,16 @@ FUZZER_CRATE := $(S)src/fuzzer/fuzzer.rc FUZZER_INPUTS := $(wildcard $(addprefix $(S)src/fuzzer/, *.rs)) -stage2/fuzzer.o: $(FUZZER_CRATE) $(FUZZER_INPUTS) $(SREQ1) +stage2/fuzzer.o: $(FUZZER_CRATE) $(FUZZER_INPUTS) $(SREQ1) \ + stage2/$(CFG_RUSTCLIB) @$(call E, compile: $@) $(STAGE1) -c -o $@ $< + +stage2/fuzzer$(X): stage2/fuzzer.o $(SREQ1) + @$(call E, link [gcc]: $@) + $(Q)gcc $(CFG_GCC_CFLAGS) stage2/glue.o -o $@ $< \ + -Lstage2 -Lrustllvm -Lrt -lrustrt -lrustllvm -lstd -lm -lrustc + @# dsymutil sometimes fails or prints a warning, but the + @# program still runs. Since it simplifies debugging other + @# programs, I\'ll live with the noise. + -$(Q)$(CFG_DSYMUTIL) $@ |