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/stage2.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/stage2.mk')
| -rw-r--r-- | mk/stage2.mk | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/mk/stage2.mk b/mk/stage2.mk index 600d55e4..74e76c3c 100644 --- a/mk/stage2.mk +++ b/mk/stage2.mk @@ -1,4 +1,5 @@ -stage2/std.o: $(STDLIB_CRATE) $(STDLIB_INPUTS) stage1/rustc$(X) $(MKFILES) +stage2/std.o: $(STDLIB_CRATE) $(STDLIB_INPUTS) stage1/rustc$(X) \ + stage1/intrinsics.bc $(MKFILES) @$(call E, compile: $@) $(STAGE1) -c --shared -o $@ $< @@ -11,11 +12,15 @@ stage2/rustc.o: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ1) @$(call E, compile: $@) $(STAGE1) -c -o $@ $< -stage2/glue.o: stage1/rustc$(X) stage1/$(CFG_STDLIB) \ - rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME) +stage2/glue.o: stage1/rustc$(X) stage1/$(CFG_STDLIB) stage1/intrinsics.bc \ + rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME) @$(call E, generate: $@) $(STAGE1) -c -o $@ --glue +stage2/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 |