summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2006-10-31 15:17:18 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2006-10-31 15:17:18 (GMT)
commit04f21eae9b2255616098f9c0ca56693ebd21bc5e (patch)
tree9e2fac09c58b99687d67e171cf99725f272507b7 /win
parent17c30a6f1929c5d3702ba39727616c8ba5f8768d (diff)
downloadtcl-04f21eae9b2255616098f9c0ca56693ebd21bc5e.zip
tcl-04f21eae9b2255616098f9c0ca56693ebd21bc5e.tar.gz
tcl-04f21eae9b2255616098f9c0ca56693ebd21bc5e.tar.bz2
Fix bug #1582769 build with VC2003 and correct i386 arch.
Diffstat (limited to 'win')
-rw-r--r--win/rules.vc7
1 files changed, 5 insertions, 2 deletions
diff --git a/win/rules.vc b/win/rules.vc
index cc43b7b..91fa444 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.11.2.5 2006/10/18 08:49:33 patthoyts Exp $
+# RCS: @(#) $Id: rules.vc,v 1.11.2.6 2006/10/31 15:17:20 patthoyts Exp $
#------------------------------------------------------------------------------
!ifndef _RULES_VC
@@ -31,7 +31,7 @@ _INSTALLDIR = $(INSTALLDIR:/=\)
!endif
!ifndef MACHINE
-!if "$(CPU)" == ""
+!if "$(CPU)" == "" || "$(CPU)" == "i386"
MACHINE = IX86
!else
MACHINE = $(CPU)
@@ -127,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