common/autoconf/build-performance.m4
changeset 22721 63761da45392
parent 22476 5adfe6618462
child 23428 3c8a05bf4656
--- a/common/autoconf/build-performance.m4	Thu Feb 20 19:59:06 2014 -0800
+++ b/common/autoconf/build-performance.m4	Mon Feb 24 12:16:58 2014 +0100
@@ -261,7 +261,7 @@
 
   if test "x$ENABLE_PRECOMPH" = xyes; then
     # Check that the compiler actually supports precomp headers.
-    if test "x$GCC" = xyes; then
+    if test "x$TOOLCHAIN_TYPE" = xgcc; then
       AC_MSG_CHECKING([that precompiled headers work])
       echo "int alfa();" > conftest.h
       $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD