Skip to content

Commit 379f166

Browse files
committed
---
yaml --- r: 2201 b: refs/heads/master c: fac8cc3 h: refs/heads/master i: 2199: f6a7e92 v: v3
1 parent 54fc65c commit 379f166

File tree

3 files changed

+30
-35
lines changed

3 files changed

+30
-35
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: c1335510d505ade8d1f2805ebf1a2beb5db8de07
2+
refs/heads/master: fac8cc3b066da8351dc24b209c1a070a53b16a61

trunk/Makefile.in

Lines changed: 28 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -463,27 +463,27 @@ boot/$(CFG_STDLIB): $(STDLIB_CRATE) $(STDLIB_INPUTS) \
463463
@$(call E, compile: $@)
464464
$(BOOT) -shared -o $@ $<
465465

466-
stage0/std.s: $(STDLIB_CRATE) $(STDLIB_INPUTS) stage0/rustc$(X) $(MKFILES)
466+
stage0/std.o: $(STDLIB_CRATE) $(STDLIB_INPUTS) stage0/rustc$(X) $(MKFILES)
467467
@$(call E, compile: $@)
468-
$(STAGE0) -S -shared -o $@ $<
468+
$(STAGE0) -c -shared -o $@ $<
469469

470470
stage0/$(CFG_STDLIB): stage0/std.o stage0/glue.o
471471
@$(call E, link: $@)
472472
$(Q)gcc $(CFG_GCC_CFLAGS) stage0/glue.o $(CFG_GCC_LINK_FLAGS) -o $@ $< \
473473
-Lstage0 -Lrt -lrustrt
474474

475-
stage1/std.s: $(STDLIB_CRATE) $(STDLIB_INPUTS) stage1/rustc$(X) $(MKFILES)
475+
stage1/std.o: $(STDLIB_CRATE) $(STDLIB_INPUTS) stage1/rustc$(X) $(MKFILES)
476476
@$(call E, compile: $@)
477-
$(STAGE1) -S -shared -o $@ $<
477+
$(STAGE1) -c -shared -o $@ $<
478478

479479
stage1/$(CFG_STDLIB): stage1/std.o stage1/glue.o
480480
@$(call E, link: $@)
481481
$(Q)gcc $(CFG_GCC_CFLAGS) stage1/glue.o $(CFG_GCC_LINK_FLAGS) -o $@ $< \
482482
-Lstage1 -Lrt -lrustrt
483483

484-
stage2/std.s: $(STDLIB_CRATE) $(STDLIB_INPUTS) stage2/rustc$(X) $(MKFILES)
484+
stage2/std.o: $(STDLIB_CRATE) $(STDLIB_INPUTS) stage2/rustc$(X) $(MKFILES)
485485
@$(call E, compile: $@)
486-
$(STAGE2) -S -shared -o $@ $<
486+
$(STAGE2) -c -shared -o $@ $<
487487

488488
stage2/$(CFG_STDLIB): stage2/std.o stage2/glue.o
489489
@$(call E, link: $@)
@@ -497,30 +497,30 @@ stage0/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(BREQ)
497497
$(BOOT) -minimal -o $@ $<
498498
$(Q)chmod 0755 $@
499499

500-
stage1/rustc.s: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ0)
500+
stage1/rustc.o: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ0)
501501
@$(call E, compile: $@)
502-
$(STAGE0) -S -o $@ $<
502+
$(STAGE0) -c -o $@ $<
503503

504-
stage2/rustc.s: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ1)
504+
stage2/rustc.o: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ1)
505505
@$(call E, compile: $@)
506-
$(STAGE1) -S -o $@ $<
506+
$(STAGE1) -c -o $@ $<
507507

508508

509509

510-
stage0/glue.s: stage0/rustc$(X) boot/$(CFG_STDLIB) \
510+
stage0/glue.o: stage0/rustc$(X) boot/$(CFG_STDLIB) \
511511
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
512512
@$(call E, generate: $@)
513-
$(STAGE0) -S -o $@ -glue
513+
$(STAGE0) -c -o $@ -glue
514514

515-
stage1/glue.s: stage1/rustc$(X) stage0/$(CFG_STDLIB) \
515+
stage1/glue.o: stage1/rustc$(X) stage0/$(CFG_STDLIB) \
516516
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
517517
@$(call E, generate: $@)
518-
$(STAGE1) -S -o $@ -glue
518+
$(STAGE1) -c -o $@ -glue
519519

520-
stage2/glue.s: stage2/rustc$(X) stage1/$(CFG_STDLIB) \
520+
stage2/glue.o: stage2/rustc$(X) stage1/$(CFG_STDLIB) \
521521
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
522522
@$(call E, generate: $@)
523-
$(STAGE2) -S -o $@ -glue
523+
$(STAGE2) -c -o $@ -glue
524524

525525
# Due to make not wanting to run the same implicit rules twice on the same
526526
# rule tree (implicit-rule recursion prevention, see "Chains of Implicit
@@ -805,35 +805,29 @@ compile-check: tidy \
805805
@$(call E, compile [boot]: $@)
806806
$(BOOT) -o $@ $<
807807

808-
%.stage0.s: %.rc $(SREQ0)
808+
%.stage0.o: %.rc $(SREQ0)
809809
@$(call E, compile [stage0]: $@)
810-
$(STAGE0) -S -o $@ $<
810+
$(STAGE0) -c -o $@ $<
811811

812-
%.stage0.s: %.rs $(SREQ0)
812+
%.stage0.o: %.rs $(SREQ0)
813813
@$(call E, compile [stage0]: $@)
814-
$(STAGE0) -S -o $@ $<
814+
$(STAGE0) -c -o $@ $<
815815

816-
%.stage1.s: %.rc $(SREQ1)
816+
%.stage1.o: %.rc $(SREQ1)
817817
@$(call E, compile [stage1]: $@)
818-
$(STAGE1) -S -o $@ $<
818+
$(STAGE1) -c -o $@ $<
819819

820-
%.stage1.s: %.rs $(SREQ1)
820+
%.stage1.o: %.rs $(SREQ1)
821821
@$(call E, compile [stage1]: $@)
822-
$(STAGE1) -S -o $@ $<
822+
$(STAGE1) -c -o $@ $<
823823

824-
%.stage2.s: %.rc $(SREQ2)
824+
%.stage2.o: %.rc $(SREQ2)
825825
@$(call E, compile [stage2]: $@)
826-
$(STAGE2) -S -o $@ $<
826+
$(STAGE2) -c -o $@ $<
827827

828-
%.stage2.s: %.rs $(SREQ2)
828+
%.stage2.o: %.rs $(SREQ2)
829829
@$(call E, compile [stage2]: $@)
830-
$(STAGE2) -S -o $@ $<
831-
832-
833-
834-
%.o: %.s
835-
@$(call E, assemble [llvm]: $@)
836-
$(Q)gcc $(CFG_GCC_CFLAGS) -o $@ -c $<
830+
$(STAGE2) -c -o $@ $<
837831

838832
# Cancel the implicit .out rule in GNU make.
839833
%.out: %

trunk/src/rustllvm/RustWrapper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ extern "C" void LLVMRustWriteOutputFile(LLVMPassManagerRef PMR, LLVMModuleRef M,
5353
LLVMCodeGenFileType FileType) {
5454
InitializeAllTargets();
5555
InitializeAllAsmPrinters();
56+
InitializeAllAsmParsers();
5657
TargetMachine::setRelocationModel(Reloc::PIC_);
5758
std::string Err;
5859
const Target *TheTarget = TargetRegistry::lookupTarget(triple, Err);

0 commit comments

Comments
 (0)