forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Abstract the build directories further in the makefiles
This defines variables for host bin and lib directories as well as all target bin and lib directories then uses them everywhere.
- Loading branch information
Showing
10 changed files
with
103 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
|
||
snap-stage1: stage1/bin/rustc$(X) stage1/lib/$(CFG_RUNTIME) \ | ||
stage1/lib/$(CFG_RUSTLLVM) stage1/lib/$(CFG_STDLIB) | ||
snap-stage1: $(HOST_BIN1)/rustc$(X) $(HOST_LIB1)/$(CFG_RUNTIME) \ | ||
$(HOST_LIB1)/$(CFG_RUSTLLVM) $(HOST_LIB1)/$(CFG_STDLIB) | ||
$(S)src/etc/make-snapshot.py stage1 | ||
|
||
snap-stage2: stage2/bin/rustc$(X) stage2/lib/$(CFG_RUNTIME) \ | ||
stage2/lib/$(CFG_RUSTLLVM) stage2/lib/$(CFG_STDLIB) | ||
$(S)src/etc/make-snapshot.py stage2 | ||
|
||
snap-stage3: stage3/bin/rustc$(X) stage3/lib/$(CFG_RUNTIME) \ | ||
stage3/lib/$(CFG_RUSTLLVM) stage3/lib/$(CFG_STDLIB) | ||
$(S)src/etc/make-snapshot.py stage3 | ||
snap-stage1: $(HOST_BIN2)/rustc$(X) $(HOST_LIB2)/$(CFG_RUNTIME) \ | ||
$(HOST_LIB2)/$(CFG_RUSTLLVM) $(HOST_LIB2)/$(CFG_STDLIB) | ||
$(S)src/etc/make-snapshot.py stage1 | ||
|
||
snap-stage1: $(HOST_BIN3)/rustc$(X) $(HOST_LIB3)/$(CFG_RUNTIME) \ | ||
$(HOST_LIB3)/$(CFG_RUSTLLVM) $(HOST_LIB3)/$(CFG_STDLIB) | ||
$(S)src/etc/make-snapshot.py stage1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
stage0/bin/rustc$(X): $(S)src/snapshots.txt $(S)src/etc/get-snapshot.py $(MKFILES) | ||
$(HOST_BIN0)/rustc$(X): $(S)src/snapshots.txt $(S)src/etc/get-snapshot.py $(MKFILES) | ||
@$(call E, fetch: $@) | ||
$(Q)$(S)src/etc/get-snapshot.py | ||
$(Q)touch $@ | ||
|
||
# Host libs will be made in the process of making rustc above. | ||
|
||
stage0/lib/$(CFG_RUNTIME): stage0/bin/rustc$(X) | ||
$(HOST_LIB0)/$(CFG_RUNTIME): $(HOST_BIN0)/rustc$(X) | ||
$(Q)touch $@ | ||
|
||
stage0/lib/$(CFG_STDLIB): stage0/bin/rustc$(X) | ||
$(HOST_LIB0)/$(CFG_STDLIB): $(HOST_BIN0)/rustc$(X) | ||
$(Q)touch $@ | ||
|
||
stage0/lib/$(CFG_RUSTLLVM): stage0/bin/rustc$(X) | ||
$(HOST_LIB0)/$(CFG_RUSTLLVM): $(HOST_BIN0)/rustc$(X) | ||
$(Q)touch $@ | ||
|
||
# Instantiate template (in stageN.mk) for building | ||
# target libraries. | ||
|
||
SREQpre = stage0/lib/$(CFG_HOST_TRIPLE)/main.o $(MKFILES) | ||
SREQpre = $(MKFILES) | ||
$(eval $(call TARGET_LIBS,pre,0,$(CFG_HOST_TRIPLE))) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters