From 1c46006c04870927c29a50c9b33945a5c2b959de Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Wed, 6 Mar 2002 21:52:40 +0000 Subject: [PATCH] enable /QIfist only if FAST_FLT_TO_INT defined --- dtool/pptempl/compilerSettings.pp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dtool/pptempl/compilerSettings.pp b/dtool/pptempl/compilerSettings.pp index 7712af9dc2..559b3ba602 100644 --- a/dtool/pptempl/compilerSettings.pp +++ b/dtool/pptempl/compilerSettings.pp @@ -4,7 +4,9 @@ #define LINKER link #define LIBBER lib #define COMMONFLAGS /Gi- - #define OPTFLAGS /O2 /Ob1 /G6 /QIfist + + // use "unsafe" QIfist flt->int rounding only if FAST_FLT_TO_INT is defined + #define OPTFLAGS /O2 /Ob1 /G6 $[if $[ne $[FAST_FLT_TO_INT],], /QIfist,] #define OPT1FLAGS /GZ // Note: Zi cannot be used on multiproc builds with precomp hdrs, Z7 must be used instead @@ -72,8 +74,10 @@ #define LDFLAGS_OPT4 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF $[LDFLAGS_OPT4] #define COMMONFLAGS /DHAVE_DINKUM /Zc:forScope + + // use "unsafe" QIfist flt->int rounding only if FAST_FLT_TO_INT is defined + #define OPTFLAGS /O2 /Ob2 /G6 $[if $[ne $[FAST_FLT_TO_INT],], /QIfist,] - #define OPTFLAGS /O2 /Ob2 /G6 /QIfist // #define OPT1FLAGS /RTCsu /GS removing /GS cause we really dont need it, /RTCu because it crashes in dxgsg with internal compiler bug #define OPT1FLAGS /RTCs