summary refs log tree commit diff stats
path: root/koch.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-03-21 12:03:59 +0100
committerAraq <rumpf_a@web.de>2017-03-21 12:04:14 +0100
commitd862d22723885e2d0f9ac9b58cafcb30e191cda2 (patch)
tree1590e0857676b15935b7853d7d209c4c911ff476 /koch.nim
parent8310d252c27219f97980aff501b6ddd6de16eab2 (diff)
downloadNim-d862d22723885e2d0f9ac9b58cafcb30e191cda2.tar.gz
koch: vcc is also built with 'koch tools'
Diffstat (limited to 'koch.nim')
-rw-r--r--koch.nim6
1 files changed, 5 insertions, 1 deletions
diff --git a/koch.nim b/koch.nim
index f5e4d3ee3..6eee09b7b 100644
--- a/koch.nim
+++ b/koch.nim
@@ -218,11 +218,14 @@ proc bundleNimsuggest(buildExe: bool) =
     copyExe("nimsuggest/nimsuggest".exe, "bin/nimsuggest".exe)
     removeFile("nimsuggest/nimsuggest".exe)
 
+proc buildVccTool() =
+  nimexec("c -o:bin/vccexe.exe tools/vccenv/vccexe")
+
 proc bundleWinTools() =
   nimexec("c tools/finish.nim")
   copyExe("tools/finish".exe, "finish".exe)
   removeFile("tools/finish".exe)
-  nimexec("c -o:bin/vccexe.exe tools/vccenv/vccexe")
+  buildVccTool()
   nimexec("c -o:bin/nimgrab.exe -d:ssl tools/nimgrab.nim")
   when false:
     # not yet a tool worth including
@@ -257,6 +260,7 @@ proc buildTools(latest: bool) =
 
   let nimgrepExe = "bin/nimgrep".exe
   nimexec "c -o:" & nimgrepExe & " tools/nimgrep.nim"
+  when defined(windows): buildVccTool()
   buildNimble(latest)
 
 proc nsis(args: string) =