diff options
| author | Patrick Walton <[email protected]> | 2011-05-04 18:28:30 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-05-04 18:29:08 -0700 |
| commit | 04f966f0bc8d092a000e5b6dad0bdd3353ec4efe (patch) | |
| tree | c958e9b9b37c6b687312137f34d2b561fb3ad49d /mk/stage1.mk | |
| parent | Add stage-specific test targets (make check-stage1 etc.) (diff) | |
| download | rust-04f966f0bc8d092a000e5b6dad0bdd3353ec4efe.tar.xz rust-04f966f0bc8d092a000e5b6dad0bdd3353ec4efe.zip | |
build: Build intrinsics.bc
Diffstat (limited to 'mk/stage1.mk')
| -rw-r--r-- | mk/stage1.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mk/stage1.mk b/mk/stage1.mk index e01942a5..eb30e782 100644 --- a/mk/stage1.mk +++ b/mk/stage1.mk @@ -1,5 +1,6 @@ stage1/std.o: $(STDLIB_CRATE) $(STDLIB_INPUTS) \ - stage0/rustc$(X) stage0/$(CFG_STDLIB) $(LREQ) $(MKFILES) + stage0/rustc$(X) stage0/$(CFG_STDLIB) stage0/intrinsics.bc \ + $(LREQ) $(MKFILES) @$(call E, compile: $@) $(STAGE0) -c --shared -o $@ $< @@ -12,10 +13,15 @@ stage1/rustc.o: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ0) @$(call E, compile: $@) $(STAGE0) -c -o $@ $< -stage1/glue.o: stage0/rustc$(X) stage0/$(CFG_STDLIB) $(LREQ) $(MKFILES) +stage1/glue.o: stage0/rustc$(X) stage0/$(CFG_STDLIB) stage0/intrinsics.bc \ + $(LREQ) $(MKFILES) @$(call E, generate: $@) $(STAGE0) -c -o $@ --glue +stage1/intrinsics.bc: $(INTRINSICS_BC) + @$(call E, cp: $@) + $(Q)cp $< $@ + # Due to make not wanting to run the same implicit rules twice on the same # rule tree (implicit-rule recursion prevention, see "Chains of Implicit # Rules" in GNU Make manual) we have to re-state the %.o and %.s patterns here |