@@ -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: $@ )
@@ -497,30 +497,30 @@ stage0/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(BREQ)
497
497
$(BOOT ) -minimal -o $@ $<
498
498
$(Q ) chmod 0755 $@
499
499
500
- stage1/rustc.s : $(COMPILER_CRATE ) $(COMPILER_INPUTS ) $(SREQ0 )
500
+ stage1/rustc.o : $(COMPILER_CRATE ) $(COMPILER_INPUTS ) $(SREQ0 )
501
501
@$(call E, compile: $@ )
502
- $(STAGE0 ) -S -o $@ $<
502
+ $(STAGE0 ) -c -o $@ $<
503
503
504
- stage2/rustc.s : $(COMPILER_CRATE ) $(COMPILER_INPUTS ) $(SREQ1 )
504
+ stage2/rustc.o : $(COMPILER_CRATE ) $(COMPILER_INPUTS ) $(SREQ1 )
505
505
@$(call E, compile: $@ )
506
- $(STAGE1 ) -S -o $@ $<
506
+ $(STAGE1 ) -c -o $@ $<
507
507
508
508
509
509
510
- stage0/glue.s : stage0/rustc$(X ) boot/$(CFG_STDLIB ) \
510
+ stage0/glue.o : stage0/rustc$(X ) boot/$(CFG_STDLIB ) \
511
511
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
512
512
@$(call E, generate: $@)
513
- $(STAGE0) -S -o $@ -glue
513
+ $(STAGE0) -c -o $@ -glue
514
514
515
- stage1/glue.s : stage1/rustc$(X ) stage0/$(CFG_STDLIB ) \
515
+ stage1/glue.o : stage1/rustc$(X ) stage0/$(CFG_STDLIB ) \
516
516
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
517
517
@$(call E, generate: $@)
518
- $(STAGE1) -S -o $@ -glue
518
+ $(STAGE1) -c -o $@ -glue
519
519
520
- stage2/glue.s : stage2/rustc$(X ) stage1/$(CFG_STDLIB ) \
520
+ stage2/glue.o : stage2/rustc$(X ) stage1/$(CFG_STDLIB ) \
521
521
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
522
522
@$(call E, generate: $@)
523
- $(STAGE2) -S -o $@ -glue
523
+ $(STAGE2) -c -o $@ -glue
524
524
525
525
# Due to make not wanting to run the same implicit rules twice on the same
526
526
# rule tree (implicit-rule recursion prevention, see "Chains of Implicit
@@ -805,35 +805,29 @@ compile-check: tidy \
805
805
@$(call E, compile [boot]: $@ )
806
806
$(BOOT ) -o $@ $<
807
807
808
- % .stage0.s : % .rc $(SREQ0 )
808
+ % .stage0.o : % .rc $(SREQ0 )
809
809
@$(call E, compile [stage0]: $@ )
810
- $(STAGE0 ) -S -o $@ $<
810
+ $(STAGE0 ) -c -o $@ $<
811
811
812
- % .stage0.s : % .rs $(SREQ0 )
812
+ % .stage0.o : % .rs $(SREQ0 )
813
813
@$(call E, compile [stage0]: $@ )
814
- $(STAGE0 ) -S -o $@ $<
814
+ $(STAGE0 ) -c -o $@ $<
815
815
816
- % .stage1.s : % .rc $(SREQ1 )
816
+ % .stage1.o : % .rc $(SREQ1 )
817
817
@$(call E, compile [stage1]: $@ )
818
- $(STAGE1 ) -S -o $@ $<
818
+ $(STAGE1 ) -c -o $@ $<
819
819
820
- % .stage1.s : % .rs $(SREQ1 )
820
+ % .stage1.o : % .rs $(SREQ1 )
821
821
@$(call E, compile [stage1]: $@ )
822
- $(STAGE1 ) -S -o $@ $<
822
+ $(STAGE1 ) -c -o $@ $<
823
823
824
- % .stage2.s : % .rc $(SREQ2 )
824
+ % .stage2.o : % .rc $(SREQ2 )
825
825
@$(call E, compile [stage2]: $@ )
826
- $(STAGE2 ) -S -o $@ $<
826
+ $(STAGE2 ) -c -o $@ $<
827
827
828
- % .stage2.s : % .rs $(SREQ2 )
828
+ % .stage2.o : % .rs $(SREQ2 )
829
829
@$(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 $@ $<
837
831
838
832
# Cancel the implicit .out rule in GNU make.
839
833
% .out : %
0 commit comments