Add -minimal mode to rustboot that skips emitting code that's broken or unneeded for rustc. Shrink rustc by 300kb. Back under 1mb.

This commit is contained in:
Graydon Hoare 2010-10-05 18:44:39 -07:00
parent d1e59d6910
commit 8ecbe49a8f
6 changed files with 38 additions and 16 deletions

View file

@ -368,7 +368,8 @@ endif
$(CFG_COMPILER): $(COMPILER_INPUTS) $(CFG_BOOT) $(CFG_RUNTIME) $(CFG_STDLIB)
@$(call CFG_ECHO, compile: $<)
$(CFG_QUIET)OCAMLRUNPARAM="b1" $(CFG_BOOT) $(CFG_BOOT_FLAGS) -o $@ $<
$(CFG_QUIET)OCAMLRUNPARAM="b1" $(CFG_BOOT) $(CFG_BOOT_FLAGS) \
-minimal -o $@ $<
$(CFG_QUIET)chmod 0755 $@
self: $(CFG_COMPILER)