Browse Source

enable /QIfist only if FAST_FLT_TO_INT defined

cxgeorge 24 years ago
parent
commit
1c46006c04
1 changed files with 6 additions and 2 deletions
  1. 6 2
      dtool/pptempl/compilerSettings.pp

+ 6 - 2
dtool/pptempl/compilerSettings.pp

@@ -4,7 +4,9 @@
   #define LINKER link
   #define LINKER link
   #define LIBBER lib
   #define LIBBER lib
   #define COMMONFLAGS /Gi-
   #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 
   #define OPT1FLAGS /GZ 
 
 
   // Note: Zi cannot be used on multiproc builds with precomp hdrs, Z7 must be used instead
   // 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 LDFLAGS_OPT4 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF $[LDFLAGS_OPT4]
 
 
   #define COMMONFLAGS /DHAVE_DINKUM /Zc:forScope
   #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 /RTCsu /GS     removing /GS cause we really dont need it, /RTCu because it crashes in dxgsg with internal compiler bug
   #define OPT1FLAGS /RTCs
   #define OPT1FLAGS /RTCs