1. Armin Rigo
  2. cpython-withatomic

Commits

Guido van Rossum  committed 47cc53a

added test for CC value not matching cache

  • Participants
  • Parent commits 8ac4c0e
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File configure.in

View file
  • Ignore whitespace
 	esac], [without_gcc=no])
 AC_MSG_RESULT($without_gcc)
 
+# If the user switches compilers, we can't believe the cache
+if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
+then
+  AC_ERROR(cached CC is different -- throw away $cache_file
+(it is also a good idea to do 'make clean' before compiling))
+fi
+
 AC_PROG_CC
 AC_PROG_RANLIB
 AC_SUBST(AR)