summaryrefslogtreecommitdiffstats
path: root/win/rules.vc
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-01 09:31:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-01 09:31:37 (GMT)
commitb89c01475a4aa977cfa56b2292504c60de9a7427 (patch)
tree4a2fd384cf9bd128a79d1713e710adeb4174a647 /win/rules.vc
parent8f2b15e6db98e069f1a7296f7c96da79b5515aad (diff)
parentb924d89e299f95beaf3c6bd1ae4adf16aa3c38d4 (diff)
downloadtcl-b89c01475a4aa977cfa56b2292504c60de9a7427.zip
tcl-b89c01475a4aa977cfa56b2292504c60de9a7427.tar.gz
tcl-b89c01475a4aa977cfa56b2292504c60de9a7427.tar.bz2
Merge 8.7
Diffstat (limited to 'win/rules.vc')
-rw-r--r--win/rules.vc9
1 files changed, 9 insertions, 0 deletions
diff --git a/win/rules.vc b/win/rules.vc
index a0cf06a..34ac230 100644
--- a/win/rules.vc
+++ b/win/rules.vc
@@ -688,6 +688,7 @@ LINKERFLAGS = $(LINKERFLAGS) -ltcg
# configuration (ignored for Tcl itself)
# _USE_64BIT_TIME_T - forces a build using 64-bit time_t for 32-bit build
# (CRT library should support this)
+# TCL_UTF_MAX=4 - forces a build using 32-bit Tcl_UniChar in stead of 16-bit.
# Further, LINKERFLAGS are modified based on above.
# Default values for all the above
@@ -752,6 +753,11 @@ TCL_USE_STATIC_PACKAGES = 0
_USE_64BIT_TIME_T = 1
!endif
+!if [nmakehlp -f $(OPTS) "utfmax"]
+!message *** Force 32-bit Tcl_UniChar
+TCL_UTF_MAX = 4
+!endif
+
# Yes, it's weird that the "symbols" option controls DEBUG and
# the "pdbs" option controls SYMBOLS. That's historical.
!if [nmakehlp -f $(OPTS) "symbols"]
@@ -1315,6 +1321,9 @@ OPTDEFINES = $(OPTDEFINES) -DNO_STRTOI64
!if "$(_USE_64BIT_TIME_T)" == "1"
OPTDEFINES = $(OPTDEFINES) -D_USE_64BIT_TIME_T
!endif
+!if "$(TCL_UTF_MAX)" == "4"
+OPTDEFINES = $(OPTDEFINES) -DTCL_UTF_MAX=4
+!endif
# _ATL_XP_TARGETING - Newer SDK's need this to build for XP
COMPILERFLAGS = /D_ATL_XP_TARGETING