summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-11 14:22:09 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-11 14:22:09 (GMT)
commit85cb8c27f27b0f3dab72ab181ba1bed5400e13e5 (patch)
tree27917ed6eb25714e1823ea6c833850f502111667 /win
parentba54e38a0afa1b848c4651ed5a5f1dee5cd6480f (diff)
downloadtcl-85cb8c27f27b0f3dab72ab181ba1bed5400e13e5.zip
tcl-85cb8c27f27b0f3dab72ab181ba1bed5400e13e5.tar.gz
tcl-85cb8c27f27b0f3dab72ab181ba1bed5400e13e5.tar.bz2
See [https://github.com/tcltk/tcl/pull/11], but (hopefully) slightly better
Diffstat (limited to 'win')
-rw-r--r--win/rules.vc5
1 files changed, 5 insertions, 0 deletions
diff --git a/win/rules.vc b/win/rules.vc
index 2f01de0..4f103d0 100644
--- a/win/rules.vc
+++ b/win/rules.vc
@@ -548,10 +548,15 @@ NMAKEHLPC = $(_TCLDIR)\win\nmakehlp.c
!endif # NMAKEHLPC
+nmakehlp:
+ $(cc32) -nologo "$(NMAKEHLPC)" -link -subsystem:console
+
# We always build nmakehlp even if it exists since we do not know
# what source it was built from.
+!if "$(MACHINE)" == "$(NATIVE_ARCH)"
!if [$(cc32) -nologo "$(NMAKEHLPC)" -link -subsystem:console > nul]
!endif
+!endif
################################################################
# 5. Test for compiler features