summary refs log tree commit diff stats
path: root/tools/niminst/buildbat.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/niminst/buildbat.tmpl')
-rw-r--r--tools/niminst/buildbat.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/niminst/buildbat.tmpl b/tools/niminst/buildbat.tmpl
index f7ccbcbfa..36e1a3e79 100644
--- a/tools/niminst/buildbat.tmpl
+++ b/tools/niminst/buildbat.tmpl
@@ -5,7 +5,7 @@ SET CC=gcc
 SET LINKER=gcc
 SET COMP_FLAGS=?{c.ccompiler.flags}
 SET LINK_FLAGS=?{c.linker.flags}
-SET BIN_DIR=?{firstBinPath(c).slashify}
+SET BIN_DIR=?{firstBinPath(c).toWin}
 
 if EXIST ..\koch.nim SET BIN_DIR=..\bin
 
@@ -16,9 +16,9 @@ REM call the compiler:
 #  block win32:
 #    var linkCmd = ""
 #    for ff in items(c.cfiles[winIndex][cpuIndex]):
-#      let f = ff.slashify
-ECHO %CC% %COMP_FLAGS% -Isrc -c ?{f} -o ?{changeFileExt(f, "o")}
-%CC% %COMP_FLAGS% -Isrc -c ?{f} -o ?{changeFileExt(f, "o")}
+#      let f = ff.toWin
+ECHO %CC% %COMP_FLAGS% -Inimcache -c ?{f} -o ?{changeFileExt(f, "o")}
+%CC% %COMP_FLAGS% -Inimcache -c ?{f} -o ?{changeFileExt(f, "o")}
 #      linkCmd.add(" " & changeFileExt(f, "o"))
 #    end for