summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--configure.in5
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index de74d4c69f..cc46b5ba04 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Nov 1 22:08:27 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: reject llvm-gcc.
+
Tue Nov 1 21:39:00 2011 NARUSE, Yui <naruse@ruby-lang.org>
* io.c (rb_cloexec_pipe): remove workaround of r33587.
diff --git a/configure.in b/configure.in
index a3d191a2bf..5e1c479c12 100644
--- a/configure.in
+++ b/configure.in
@@ -289,6 +289,11 @@ AC_PROG_CXX
AC_PROG_GCC_TRADITIONAL
AC_SUBST(GCC)
if test "$GCC" = yes; then
+ AC_TRY_LINK([
+ @%:@if defined __llvm__ && !defined __clang__
+ @%:@error llvm-gcc has ended
+ @%:@endif
+ ], [], [], [AC_MSG_ERROR(llvm-gcc has ended)])
linker_flag=-Wl,
: ${optflags=-O3}
AS_CASE(["$target_os"], [linux*|darwin*], [: ${debugflags=-ggdb}])