summaryrefslogtreecommitdiffstats
path: root/win/rules.vc
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2006-10-31 14:19:57 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2006-10-31 14:19:57 (GMT)
commit794852278f00d531ee4a0f3a95c2a993e9ffe33d (patch)
tree04105a22ce324e8c656ebd5f6210633d70c07b83 /win/rules.vc
parent0ca58aa64c618e56ba5a8e06c8030de1737ba015 (diff)
downloadtcl-794852278f00d531ee4a0f3a95c2a993e9ffe33d.zip
tcl-794852278f00d531ee4a0f3a95c2a993e9ffe33d.tar.gz
tcl-794852278f00d531ee4a0f3a95c2a993e9ffe33d.tar.bz2
Fix for bug #1582769 - options conflict with VC2003.
Diffstat (limited to 'win/rules.vc')
-rw-r--r--win/rules.vc9
1 files changed, 8 insertions, 1 deletions
diff --git a/win/rules.vc b/win/rules.vc
index e4904de..732b226 100644
--- a/win/rules.vc
+++ b/win/rules.vc
@@ -11,7 +11,7 @@
# Copyright (c) 2003-2006 Patrick Thoyts
#
#------------------------------------------------------------------------------
-# RCS: @(#) $Id: rules.vc,v 1.26 2006/10/06 14:14:29 patthoyts Exp $
+# RCS: @(#) $Id: rules.vc,v 1.27 2006/10/31 14:19:57 patthoyts Exp $
#------------------------------------------------------------------------------
!ifndef _RULES_VC
@@ -31,7 +31,11 @@ _INSTALLDIR = $(INSTALLDIR:/=\)
!endif
!ifndef MACHINE
+!if "$(CPU)" == "" || "$(CPU)" == "i386"
MACHINE = IX86
+!else
+MACHINE = $(CPU)
+!endif
!endif
!ifndef CFG_ENCODING
@@ -123,9 +127,12 @@ DEBUGFLAGS = $(DEBUGFLAGS) -GZ
COMPILERFLAGS =-W3
+# In v13 -GL and -YX are incompatible.
!if [nmakehlp -c -YX]
+!if ![nmakehlp -c -GL]
OPTIMIZATIONS = $(OPTIMIZATIONS) -YX
!endif
+!endif
!if "$(MACHINE)" == "IX86"
### test for pentium errata