Thanks for trying to get that working! Would it be easier to add some wrapper scripts to PATH? Or is that basically what your symlinks are?
Eg:
diff --git a/test/tup.sh b/test/tup.sh
index 6b56d900..d3a36ffc 100755
--- a/test/tup.sh
+++ b/test/tup.sh
@@ -29,11 +29,6 @@ tuptestdir="tuptesttmp-$testname"
# avoid extra forks in win32
: ${tupos:=`uname -s`}
-rm -rf $tuptestdir
-mkdir $tuptestdir
-cd $tuptestdir
-tup init --no-sync --force
-
generate_script_name="build.sh"
case $tupos in
CYGWIN*)
@@ -42,8 +37,17 @@ CYGWIN*)
in_windows=1
generate_script_name="build.bat"
;;
+FreeBSD*)
+ PATH=$PWD/freebsd_wrappers:$PATH
+ export PATH
+;;
esac
+rm -rf $tuptestdir
+mkdir $tuptestdir
+cd $tuptestdir
+tup init --no-sync --force
+
# override any user settings for grep
GREP_OPTIONS=""
export GREP_OPTIONS
And in test/freebsd_wrappers/gcc:
clang "$@"
But if that or some other simple solution isn't feasible, I'd rather have working FreeBSD tests with the CC patch than non-working tests and keeping hard-coded gcc.
-Mike