@@ -463,27 +463,27 @@ boot/$(CFG_STDLIB): $(STDLIB_CRATE) $(STDLIB_INPUTS) \
463
463
@$(call E, compile: $@)
464
464
$(BOOT) -shared -o $@ $<
465
465
466
- stage0/std.s : $(STDLIB_CRATE ) $(STDLIB_INPUTS ) stage0/rustc$(X ) $(MKFILES )
466
+ stage0/std.o : $(STDLIB_CRATE ) $(STDLIB_INPUTS ) stage0/rustc$(X ) $(MKFILES )
467
467
@$(call E, compile: $@ )
468
- $(STAGE0 ) -S -shared -o $@ $<
468
+ $(STAGE0 ) -c -shared -o $@ $<
469
469
470
470
stage0/$(CFG_STDLIB ) : stage0/std.o stage0/glue.o
471
471
@$(call E, link: $@ )
472
472
$(Q ) gcc $(CFG_GCC_CFLAGS ) stage0/glue.o $(CFG_GCC_LINK_FLAGS ) -o $@ $< \
473
473
-Lstage0 -Lrt -lrustrt
474
474
475
- stage1/std.s : $(STDLIB_CRATE ) $(STDLIB_INPUTS ) stage1/rustc$(X ) $(MKFILES )
475
+ stage1/std.o : $(STDLIB_CRATE ) $(STDLIB_INPUTS ) stage1/rustc$(X ) $(MKFILES )
476
476
@$(call E, compile: $@ )
477
- $(STAGE1 ) -S -shared -o $@ $<
477
+ $(STAGE1 ) -c -shared -o $@ $<
478
478
479
479
stage1/$(CFG_STDLIB ) : stage1/std.o stage1/glue.o
480
480
@$(call E, link: $@ )
481
481
$(Q ) gcc $(CFG_GCC_CFLAGS ) stage1/glue.o $(CFG_GCC_LINK_FLAGS ) -o $@ $< \
482
482
-Lstage1 -Lrt -lrustrt
483
483
484
- stage2/std.s : $(STDLIB_CRATE ) $(STDLIB_INPUTS ) stage2/rustc$(X ) $(MKFILES )
484
+ stage2/std.o : $(STDLIB_CRATE ) $(STDLIB_INPUTS ) stage2/rustc$(X ) $(MKFILES )
485
485
@$(call E, compile: $@ )
486
- $(STAGE2 ) -S -shared -o $@ $<
486
+ $(STAGE2 ) -c -shared -o $@ $<
487
487
488
488
stage2/$(CFG_STDLIB ) : stage2/std.o stage2/glue.o
489
489
@$(call E, link: $@ )
@@ -509,20 +509,20 @@ stage2/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ1)
509
509
510
510
511
511
512
- stage0/glue.s : stage0/rustc$(X ) boot/$(CFG_STDLIB ) \
512
+ stage0/glue.o : stage0/rustc$(X ) boot/$(CFG_STDLIB ) \
513
513
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
514
514
@$(call E, generate: $@)
515
- $(STAGE0) -S -o $@ -glue
515
+ $(STAGE0) -c -o $@ -glue
516
516
517
- stage1/glue.s : stage1/rustc$(X ) stage0/$(CFG_STDLIB ) \
517
+ stage1/glue.o : stage1/rustc$(X ) stage0/$(CFG_STDLIB ) \
518
518
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
519
519
@$(call E, generate: $@)
520
- $(STAGE1) -S -o $@ -glue
520
+ $(STAGE1) -c -o $@ -glue
521
521
522
- stage2/glue.s : stage2/rustc$(X ) stage1/$(CFG_STDLIB ) \
522
+ stage2/glue.o : stage2/rustc$(X ) stage1/$(CFG_STDLIB ) \
523
523
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
524
524
@$(call E, generate: $@)
525
- $(STAGE2) -S -o $@ -glue
525
+ $(STAGE2) -c -o $@ -glue
526
526
527
527
# Due to make not wanting to run the same implicit rules twice on the same
528
528
# rule tree (implicit-rule recursion prevention, see "Chains of Implicit
@@ -789,35 +789,29 @@ compile-check: tidy \
789
789
@$(call E, compile [boot]: $@ )
790
790
$(BOOT ) -o $@ $<
791
791
792
- % .stage0.s : % .rc $(SREQ0 )
792
+ % .stage0.o : % .rc $(SREQ0 )
793
793
@$(call E, compile [stage0]: $@ )
794
- $(STAGE0 ) -S -o $@ $<
794
+ $(STAGE0 ) -c -o $@ $<
795
795
796
- % .stage0.s : % .rs $(SREQ0 )
796
+ % .stage0.o : % .rs $(SREQ0 )
797
797
@$(call E, compile [stage0]: $@ )
798
- $(STAGE0 ) -S -o $@ $<
798
+ $(STAGE0 ) -c -o $@ $<
799
799
800
- % .stage1.s : % .rc $(SREQ1 )
800
+ % .stage1.o : % .rc $(SREQ1 )
801
801
@$(call E, compile [stage1]: $@ )
802
- $(STAGE1 ) -S -o $@ $<
802
+ $(STAGE1 ) -c -o $@ $<
803
803
804
- % .stage1.s : % .rs $(SREQ1 )
804
+ % .stage1.o : % .rs $(SREQ1 )
805
805
@$(call E, compile [stage1]: $@ )
806
- $(STAGE1 ) -S -o $@ $<
806
+ $(STAGE1 ) -c -o $@ $<
807
807
808
- % .stage2.s : % .rc $(SREQ2 )
808
+ % .stage2.o : % .rc $(SREQ2 )
809
809
@$(call E, compile [stage2]: $@ )
810
- $(STAGE2 ) -S -o $@ $<
810
+ $(STAGE2 ) -c -o $@ $<
811
811
812
- % .stage2.s : % .rs $(SREQ2 )
812
+ % .stage2.o : % .rs $(SREQ2 )
813
813
@$(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 $@ $<
821
815
822
816
# Cancel the implicit .out rule in GNU make.
823
817
% .out : %
0 commit comments