From d461b029213d366e0aab0f305b3f92b8ecd8d2e8 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Wed, 11 Aug 2021 01:25:59 +0100 Subject: make [HT]CC full paths for redo-ifchange in .tool This should force rebuilding targets which depend on tools which have changed in the filesystem and prevent envrionment changes from causing build changes. But this should be documented. Ideally a redo with a redo-always (or more aptly named redo-ifredo) would mark an env target as needing redoing every time you run redo on a deptree which includes it and this would in turn cause rebuilding of things which rely on the environment (like tools which run from the path). --- .vars.rc.do | 2 ++ 1 file changed, 2 insertions(+) (limited to '.vars.rc.do') diff --git a/.vars.rc.do b/.vars.rc.do index 3e0d1a1..3a5d26d 100755 --- a/.vars.rc.do +++ b/.vars.rc.do @@ -63,7 +63,9 @@ if [[ $werror ]]; then fi if [[ ! $TCC ]]; then TCC=$CC; fi +TCC=$(command -v "$TCC") if [[ ! $HCC ]]; then HCC=$CC; fi +HCC=$(command -v "$HCC") for p in T H; do for v in CFLAGS CPPFLAGS LDFLAGS LDLIBS; do eval "$p$v+=(\"\${$v[@]}\")" -- cgit v1.2.3-54-g00ecf