summaryrefslogtreecommitdiffstats
path: root/win/rules-ext.vc
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-15 13:51:02 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-15 13:51:02 (GMT)
commitdff07b745999cb6df94a2fbe5ef2a22a9f7e24f3 (patch)
tree92a44d45fbadc440d9882769c78a5f957d10bc2b /win/rules-ext.vc
parentb5898cc4d07090ca5d742abc116dd57baa086abc (diff)
downloadtcl-dff07b745999cb6df94a2fbe5ef2a22a9f7e24f3.zip
tcl-dff07b745999cb6df94a2fbe5ef2a22a9f7e24f3.tar.gz
tcl-dff07b745999cb6df94a2fbe5ef2a22a9f7e24f3.tar.bz2
Add nmakehlp.exe (for AMD64) to distribution, and make it usable in rules-ext.vc too
Diffstat (limited to 'win/rules-ext.vc')
-rw-r--r--win/rules-ext.vc5
1 files changed, 5 insertions, 0 deletions
diff --git a/win/rules-ext.vc b/win/rules-ext.vc
index 6da5689..6d31a03 100644
--- a/win/rules-ext.vc
+++ b/win/rules-ext.vc
@@ -31,8 +31,13 @@ macro to the name of the project makefile.
# We extract version numbers using the nmakehlp program. For now use
# the local copy of nmakehlp. Once we locate Tcl, we will use that
# one if it is newer.
+!if "$(MACHINE)" == "IX86" || "$(MACHINE)" == "$(NATIVE_ARCH)"
!if [$(CC) -nologo -DNDEBUG "nmakehlp.c" -link -subsystem:console > nul]
!endif
+!else
+!if [copy x86_64-w64-mingw32-nmakehlp.exe nmakehlp.exe >NUL]
+!endif
+!endif
# First locate the Tcl directory that we are working with.
!if "$(TCLDIR)" != ""