https://svn.lrde.epita.fr/svn/lrde-tools/trunk/build-farm
Index: ChangeLog
from Roland Levillain <roland(a)lrde.epita.fr>
* buildfarm_worker/build_test.fns (action_system): Fix the query
of the versions of the C and C++ compilers.
build_test.fns | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
Index: buildfarm_worker/build_test.fns
--- buildfarm_worker/build_test.fns (revision 396)
+++ buildfarm_worker/build_test.fns (working copy)
@@ -301,8 +301,18 @@
. $bf_root/system.fns
echo
+ # C and C++ compilers used.
+ c_compiler="$CC"
+ if test -z "$c_compiler"; then
+ c_compiler=cc
+ fi
+ cxx_compiler="$CXX"
+ if test -z "$cxx_compiler"; then
+ cxx_compiler=c++
+ fi
+
# print some programs version. Too late, it was asked.
- SHOW_VERSION="$CC --version:$CXX --version:autoconf --version:automake
--version:make --version:libtool --version:ld --version:$PRG_VERSION"
+ SHOW_VERSION="$c_compiler --version:$cxx_compiler --version:autoconf
--version:automake --version:make --version:libtool --version:ld
--version:$PRG_VERSION"
old_IFS=$IFS
IFS=":"