From: Jan Lehnardt Date: Wed, 23 Oct 2002 17:56:42 +0000 (+0000) Subject: - use the cc that was detected by ./configure when determining version X-Git-Tag: php-4.3.0pre2~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e96e0ae002e7a450fc1b56150f3163600951ba77;p=php - use the cc that was detected by ./configure when determining version information in run-tests.php --- diff --git a/Makefile.global b/Makefile.global index 29e9a551ad..f22e42095b 100644 --- a/Makefile.global +++ b/Makefile.global @@ -49,6 +49,7 @@ install-su: install-pear install-tester test: $(SAPI_CLI_PATH) @TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \ TEST_PHP_SRCDIR=$(top_srcdir) \ + CC=$(CC) \ $(top_builddir)/$(SAPI_CLI_PATH) $(top_srcdir)/run-tests.php $(TESTS) clean: diff --git a/run-tests.php b/run-tests.php index 9170155b66..d29b147bbd 100755 --- a/run-tests.php +++ b/run-tests.php @@ -270,7 +270,7 @@ if ($sum_results['FAILED']) { $failed_tests_data .= "Autoconf:\n". shell_exec('autoconf --version'). "\n"; $failed_tests_data .= "Libtool:\n". shell_exec('libtool --version'). "\n"; $failed_tests_data .= "Bison:\n". shell_exec('bison --version'). "\n"; - $failed_tests_data .= "Compiler:\n". shell_exec('cc -v'). "\n"; + $failed_tests_data .= "Compiler:\n". shell_exec(getenv('CC').' -v'). "\n"; $failed_tests_data .= "\n\n"; foreach ($GLOBALS['__PHP_FAILED_TESTS__'] as $test_info) {