Skip to content

Commit 57842b1

Browse files
committed
Regenerate the toolchain wrappers when Makeconf changes
A reconfigure that changed a tool path left a stale wrapper; depend on Makeconf so the wrapper is regenerated.
1 parent f28759d commit 57842b1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

toolchain/GNUmakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ $(V).SILENT:
3636
bin:
3737
mkdir -p $@
3838

39-
bin/$(CONFIG_TARGET_TRIPLE)-%: %.in | bin
39+
# Depend on Makeconf so a reconfigure that changes a tool path regenerates the
40+
# wrapper instead of leaving a stale one.
41+
bin/$(CONFIG_TARGET_TRIPLE)-%: %.in $(TOPDIR)/Makeconf | bin
4042
@echo "SUBST $@"
4143
sed -e 's!@@CONFIG_TARGET_ARCH@@!$(CONFIG_TARGET_ARCH)!g' \
4244
-e 's!@@CONFIG_TARGET_TRIPLE@@!$(CONFIG_TARGET_TRIPLE)!g' \

0 commit comments

Comments
 (0)