I couldn’t find my old build folder for Tcl/Tk (must have deleted it), but a brief reconstruction of how I did the build is roughly as follows:
- start a cmd shell
- run “vcarsall.bat x64” to set up the VS2017 command-line environment
- cd into the tcl8.6.x/win directory
- run “nmake -f makefile.vc release”
- run “nmake -f makefile.vc install INSTALLDIR=F:\Programs\Tcl86”
- do the same for tk8.6.x
The flags were the default release flags in the makefile: -O2 -GS -GL.
The installdir “F:\Programs\Tcl86” was just my preference.