mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
38c67a4c8d
This defines variables for host bin and lib directories as well as all target bin and lib directories then uses them everywhere.
22 lines
568 B
Makefile
22 lines
568 B
Makefile
$(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.
|
|
|
|
$(HOST_LIB0)/$(CFG_RUNTIME): $(HOST_BIN0)/rustc$(X)
|
|
$(Q)touch $@
|
|
|
|
$(HOST_LIB0)/$(CFG_STDLIB): $(HOST_BIN0)/rustc$(X)
|
|
$(Q)touch $@
|
|
|
|
$(HOST_LIB0)/$(CFG_RUSTLLVM): $(HOST_BIN0)/rustc$(X)
|
|
$(Q)touch $@
|
|
|
|
# Instantiate template (in stageN.mk) for building
|
|
# target libraries.
|
|
|
|
SREQpre = $(MKFILES)
|
|
$(eval $(call TARGET_LIBS,pre,0,$(CFG_HOST_TRIPLE)))
|
|
|