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/stage3.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/stage3.mk')
| -rw-r--r-- | mk/stage3.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/stage3.mk b/mk/stage3.mk index 8f56637e..427f37f8 100644 --- a/mk/stage3.mk +++ b/mk/stage3.mk @@ -1,4 +1,5 @@ -stage3/std.o: $(STDLIB_CRATE) $(STDLIB_INPUTS) stage2/rustc$(X) $(MKFILES) +stage3/std.o: $(STDLIB_CRATE) $(STDLIB_INPUTS) stage2/rustc$(X) \ + stage2/intrinsics.bc $(MKFILES) @$(call E, compile: $@) $(STAGE2) -c --shared -o $@ $< @@ -11,11 +12,15 @@ stage3/rustc.o: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ2) @$(call E, compile: $@) $(STAGE2) -c -o $@ $< -stage3/glue.o: stage2/rustc$(X) stage2/$(CFG_STDLIB) \ +stage3/glue.o: stage2/rustc$(X) stage2/$(CFG_STDLIB) stage2/intrinsics.bc \ rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME) @$(call E, generate: $@) $(STAGE2) -c -o $@ --glue +stage3/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 |