[#6864] ruby 1.8.4 rc breaks alias_method/rails in bad ways — "Ara.T.Howard" <ara.t.howard@...>

20 messages 2005/12/09
[#6870] Re: ruby 1.8.4 rc breaks alias_method/rails in bad ways — =?ISO-8859-15?Q?Florian_Gro=DF?= <florgro@...> 2005/12/12

Ara.T.Howard wrote:

[#6872] Re: ruby 1.8.4 rc breaks alias_method/rails in bad ways — ara.t.howard@... 2005/12/12

On Tue, 13 Dec 2005, [ISO-8859-15] Florian Growrote:

[#6873] Re: ruby 1.8.4 rc breaks alias_method/rails in bad ways — James Edward Gray II <james@...> 2005/12/12

On Dec 12, 2005, at 1:19 PM, ara.t.howard@noaa.gov wrote:

[#6874] Re: ruby 1.8.4 rc breaks alias_method/rails in bad ways — ara.t.howard@... 2005/12/12

On Tue, 13 Dec 2005, James Edward Gray II wrote:

[#6891] Time.utc! and Time.localtime! — Daniel Hobe <hobe@...>

Writing a script yesterday I found out, much to my surprise, that the

16 messages 2005/12/14

[#6918] change to yaml in 1.8.4 — ara.t.howard@...

14 messages 2005/12/16

[#6934] 1.8.x, YAML, and release management — Ryan Davis <ryand-ruby@...>

I'm concerned that 1.8.3's acceptance of non-backwards-compatible

28 messages 2005/12/18

[#6996] Problems building 1.8.4 with VS8 C++ Express Edition (cl 14.00) — Austin Ziegler <halostatue@...>

Visual Studio C++ 2005 Express Edition (VS 8.0)

20 messages 2005/12/27

Re: Problems building 1.8.4 with VS8 C++ Express Edition (cl 14.00)

From: nobuyoshi nakada <nobuyoshi.nakada@...>
Date: 2005-12-27 09:54:23 UTC
List: ruby-core #7003
Hi,

At Tue, 27 Dec 2005 16:37:37 +0900,
U.Nakamura wrote in [ruby-core:07001]:
> | +!if $(MSC_VER) >= 1400
> | +/* Prevents VC++ 2005 (cl ver 14) warnings */
> | +#define _CRT_SECURE_NO_DEPRECATE 1
> | +#define _CRT_NONSTDC_NO_DEPRECATE 1
> | +!endif
> 
> Defining these macros in config.h is not good idea because
> some .c files include standard headers before including ruby.h.
> I think we should define them in CPPFLAGS.

Right, I found missing/file.h included from file.c causes a
problem, and couldn't make miniruby with -debug linker option.


Index: win32/Makefile.sub
===================================================================
RCS file: /cvs/ruby/src/ruby/win32/Makefile.sub,v
retrieving revision 1.105
diff -U2 -p -u -r1.105 Makefile.sub
--- win32/Makefile.sub	25 Oct 2005 16:59:17 -0000	1.105
+++ win32/Makefile.sub	27 Dec 2005 08:15:23 -0000
@@ -64,5 +64,7 @@ PROCESSOR_LEVEL = 5
 PROCESSOR_LEVEL = 6
 !endif
+!if $(MSC_VER) < 1400
 PROCESSOR_FLAG = -G$(PROCESSOR_LEVEL)
+!endif
 CPU = i$(PROCESSOR_LEVEL)86
 ARCH = i386
@@ -71,9 +73,9 @@ CPU = $(PROCESSOR_ARCHITECTURE)
 ARCH = $(PROCESSOR_ARCHITECTURE)
 !endif
-!if !defined(DEBUGFLAGS)
+!if !defined(DEBUGFLAGS) && $(MSC_VER) < 1400
 DEBUGFLAGS = -Zi
 !endif
 !if !defined(OPTFLAGS)
-OPTFLAGS = -O2b2xg-
+OPTFLAGS = -O2b2xty-
 !endif
 !if !defined(OS)
@@ -143,4 +145,9 @@ LD = $(CC)
 LDSHARED = $(LD) -LD
 XCFLAGS = -DRUBY_EXPORT -I. -I$(srcdir) -I$(srcdir)/missing
+!if $(MSC_VER) >= 1400
+# Prevents VC++ 2005 (cl ver 14) warnings
+CPPFLAGS = $(CPPFLAGS) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
+!endif
+
 DLDFLAGS = $(LDFLAGS) -dll
 SOLIBS = 
@@ -202,4 +209,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/
 !endif
 	@$(srcdir:/=\)\win32\ifchange.bat config.h <<
+#if _MSC_VER != $(MSC_VER)
+#error MSC version unmatch
+#endif
 #define STDC_HEADERS 1
 #define HAVE_SYS_TYPES_H 1


-- 
Nobu Nakada

In This Thread