Skip to content

Commit 9886298

Browse files
committed
---
yaml --- r: 2138 b: refs/heads/master c: 9ab4203 h: refs/heads/master v: v3
1 parent 570976e commit 9886298

File tree

3 files changed

+26
-31
lines changed

3 files changed

+26
-31
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: 0c873993c94a3bd5827061120e2caf230f89c498
2+
refs/heads/master: 9ab42038bb13d3c8b01faa9c88e660e4e590fb00

trunk/Makefile.in

Lines changed: 24 additions & 30 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: $@)
@@ -509,20 +509,20 @@ stage2/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ1)
509509

510510

511511

512-
stage0/glue.s: stage0/rustc$(X) boot/$(CFG_STDLIB) \
512+
stage0/glue.o: stage0/rustc$(X) boot/$(CFG_STDLIB) \
513513
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
514514
@$(call E, generate: $@)
515-
$(STAGE0) -S -o $@ -glue
515+
$(STAGE0) -c -o $@ -glue
516516

517-
stage1/glue.s: stage1/rustc$(X) stage0/$(CFG_STDLIB) \
517+
stage1/glue.o: stage1/rustc$(X) stage0/$(CFG_STDLIB) \
518518
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
519519
@$(call E, generate: $@)
520-
$(STAGE1) -S -o $@ -glue
520+
$(STAGE1) -c -o $@ -glue
521521

522-
stage2/glue.s: stage2/rustc$(X) stage1/$(CFG_STDLIB) \
522+
stage2/glue.o: stage2/rustc$(X) stage1/$(CFG_STDLIB) \
523523
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
524524
@$(call E, generate: $@)
525-
$(STAGE2) -S -o $@ -glue
525+
$(STAGE2) -c -o $@ -glue
526526

527527
# Due to make not wanting to run the same implicit rules twice on the same
528528
# rule tree (implicit-rule recursion prevention, see "Chains of Implicit
@@ -789,35 +789,29 @@ compile-check: tidy \
789789
@$(call E, compile [boot]: $@)
790790
$(BOOT) -o $@ $<
791791

792-
%.stage0.s: %.rc $(SREQ0)
792+
%.stage0.o: %.rc $(SREQ0)
793793
@$(call E, compile [stage0]: $@)
794-
$(STAGE0) -S -o $@ $<
794+
$(STAGE0) -c -o $@ $<
795795

796-
%.stage0.s: %.rs $(SREQ0)
796+
%.stage0.o: %.rs $(SREQ0)
797797
@$(call E, compile [stage0]: $@)
798-
$(STAGE0) -S -o $@ $<
798+
$(STAGE0) -c -o $@ $<
799799

800-
%.stage1.s: %.rc $(SREQ1)
800+
%.stage1.o: %.rc $(SREQ1)
801801
@$(call E, compile [stage1]: $@)
802-
$(STAGE1) -S -o $@ $<
802+
$(STAGE1) -c -o $@ $<
803803

804-
%.stage1.s: %.rs $(SREQ1)
804+
%.stage1.o: %.rs $(SREQ1)
805805
@$(call E, compile [stage1]: $@)
806-
$(STAGE1) -S -o $@ $<
806+
$(STAGE1) -c -o $@ $<
807807

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

812-
%.stage2.s: %.rs $(SREQ2)
812+
%.stage2.o: %.rs $(SREQ2)
813813
@$(call E, compile [stage2]: $@)
814-
$(STAGE2) -S -o $@ $<
815-
816-
817-
818-
%.o: %.s
819-
@$(call E, assemble [llvm]: $@)
820-
$(Q)gcc $(CFG_GCC_CFLAGS) -o $@ -c $<
814+
$(STAGE2) -c -o $@ $<
821815

822816
# Cancel the implicit .out rule in GNU make.
823817
%.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)