mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 01:44:04 +00:00
Move the llvm auto-clean stamp into $target/llvm
This commit is contained in:
parent
1fbbc71a33
commit
44be4a4737
11
Makefile.in
11
Makefile.in
@ -574,19 +574,10 @@ ALL_TARGET_RULES = $(foreach target,$(CFG_TARGET_TRIPLES), \
|
|||||||
$(foreach host,$(CFG_HOST_TRIPLES), \
|
$(foreach host,$(CFG_HOST_TRIPLES), \
|
||||||
all-target-$(target)-host-$(host)))
|
all-target-$(target)-host-$(host)))
|
||||||
|
|
||||||
all: rustllvm/llvm-auto-clean-stamp \
|
all: $(ALL_TARGET_RULES) $(GENERATED) docs
|
||||||
$(ALL_TARGET_RULES) $(GENERATED) docs
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# This is used to independently force an LLVM clean rebuild
|
|
||||||
# when we changed something not otherwise captured by builtin
|
|
||||||
# dependencies. In these cases, commit a change that touches
|
|
||||||
# the stamp in the source dir.
|
|
||||||
rustllvm/llvm-auto-clean-stamp: $(S)src/rustllvm/llvm-auto-clean-trigger
|
|
||||||
$(Q)$(MAKE) clean-llvm
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# Re-configuration
|
# Re-configuration
|
||||||
|
12
mk/llvm.mk
12
mk/llvm.mk
@ -24,12 +24,22 @@ define DEF_LLVM_RULES
|
|||||||
# If CFG_LLVM_ROOT is defined then we don't build LLVM ourselves
|
# If CFG_LLVM_ROOT is defined then we don't build LLVM ourselves
|
||||||
ifeq ($(CFG_LLVM_ROOT),)
|
ifeq ($(CFG_LLVM_ROOT),)
|
||||||
|
|
||||||
$$(LLVM_CONFIG_$(1)): $$(LLVM_DEPS)
|
LLVM_STAMP_$(1) = $$(CFG_LLVM_BUILD_DIR_$(1))/llvm-auto-clean-stamp
|
||||||
|
|
||||||
|
$$(LLVM_CONFIG_$(1)): $$(LLVM_DEPS) $$(LLVM_STAMP_$(1))
|
||||||
@$$(call E, make: llvm)
|
@$$(call E, make: llvm)
|
||||||
$$(Q)$$(MAKE) -C $$(CFG_LLVM_BUILD_DIR_$(1)) $$(CFG_LLVM_BUILD_ENV)
|
$$(Q)$$(MAKE) -C $$(CFG_LLVM_BUILD_DIR_$(1)) $$(CFG_LLVM_BUILD_ENV)
|
||||||
$$(Q)touch $$(LLVM_CONFIG_$(1))
|
$$(Q)touch $$(LLVM_CONFIG_$(1))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# This is used to independently force an LLVM clean rebuild
|
||||||
|
# when we changed something not otherwise captured by builtin
|
||||||
|
# dependencies. In these cases, commit a change that touches
|
||||||
|
# the stamp in the source dir.
|
||||||
|
$$(LLVM_STAMP_$(1)): $(S)src/rustllvm/llvm-auto-clean-trigger
|
||||||
|
$(Q)$(MAKE) clean-llvm
|
||||||
|
touch $$@
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(foreach host,$(CFG_HOST_TRIPLES), \
|
$(foreach host,$(CFG_HOST_TRIPLES), \
|
||||||
|
Loading…
Reference in New Issue
Block a user