https://svn.lrde.epita.fr/svn/lrde-tools/trunk/build-farm
Index: ChangeLog
from Roland Levillain <roland(a)lrde.epita.fr>
Have `timelimit' build without CC defined.
* buildfarm_worker/build_test.fns (action_system): Don't abort
because of an undefined CC environment variable when compiling
`timelimit'.
build_test.fns | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
Index: buildfarm_worker/build_test.fns
--- buildfarm_worker/build_test.fns (revision 354)
+++ buildfarm_worker/build_test.fns (working copy)
@@ -289,7 +289,16 @@
esac
echo "Building timelimit"
- if ! $CC $TIMELIMIT_FLAGS -o $srcdir/timelimit $bf_root/timelimit.c; then
+ # Choose the C compiler used to build `timelimit'.
+ if test -n "$CC"; then
+ timelimit_CC="$CC"
+ else
+ # Use the default C compiler.
+ timelimit_CC=cc
+ fi
+ if ! $timelimit_CC $TIMELIMIT_FLAGS -o $srcdir/timelimit \
+ $bf_root/timelimit.c
+ then
echo "SYSTEM STATUS: 1"
return 1
fi