[前][次][番号順一覧][スレッド一覧]

ruby-changes:52650

From: shyouhei <ko1@a...>
Date: Thu, 27 Sep 2018 13:33:18 +0900 (JST)
Subject: [ruby-changes:52650] shyouhei:r64862 (trunk): move GCC version check from marshal.c to configure.ac

shyouhei	2018-09-27 13:33:11 +0900 (Thu, 27 Sep 2018)

  New Revision: 64862

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64862

  Log:
    move GCC version check from marshal.c to configure.ac
    
    I think it should be done in configure

  Modified files:
    trunk/configure.ac
    trunk/marshal.c
Index: configure.ac
===================================================================
--- configure.ac	(revision 64861)
+++ configure.ac	(revision 64862)
@@ -238,6 +238,10 @@ AS_IF([test "$GCC" = yes], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L238
     linker_flag=
 ])
 
+AS_IF([test "$GCC" = yes -a "$gcc_major" -lt 3 ], [
+    AC_MSG_ERROR([too old GCC])
+])
+
 RUBY_PROG_GNU_LD
 RUBY_CPPOUTFILE
 
Index: marshal.c
===================================================================
--- marshal.c	(revision 64861)
+++ marshal.c	(revision 64862)
@@ -9,10 +9,6 @@ https://github.com/ruby/ruby/blob/trunk/marshal.c#L9
 
 **********************************************************************/
 
-#if defined __GNUC__ && __GNUC__ < 3
-# error too old GCC
-#endif
-
 #include "ruby/ruby.h"
 #include "ruby/io.h"
 #include "internal.h"

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]