From 2909e413707513fdbca3c387366ce9e9ecad4f37 Mon Sep 17 00:00:00 2001 From: Miran Date: Fri, 4 Oct 2019 17:13:04 +0200 Subject: [backport] bundle nimpretty on Windows (#12358) --- koch.nim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'koch.nim') diff --git a/koch.nim b/koch.nim index be7f038f1..083394e00 100644 --- a/koch.nim +++ b/koch.nim @@ -169,6 +169,10 @@ proc bundleNimsuggest(args: string) = proc buildVccTool(args: string) = nimCompileFold("Compile Vcc", "tools/vccexe/vccexe.nim ", options = args) +proc bundleNimpretty(args: string) = + nimCompileFold("Compile nimpretty", "nimpretty/nimpretty.nim", + options = "-d:release " & args) + proc bundleWinTools(args: string) = nimCompile("tools/finish.nim", outputDir = "", options = args) @@ -185,6 +189,7 @@ proc bundleWinTools(args: string) = proc zip(latest: bool; args: string) = bundleNimbleExe(latest, args) bundleNimsuggest(args) + bundleNimpretty(args) bundleWinTools(args) nimexec("cc -r $2 --var:version=$1 --var:mingw=none --main:compiler/nim.nim scripts compiler/installer.ini" % [VersionAsString, compileNimInst]) @@ -214,8 +219,7 @@ proc buildTools(args: string = "") = nimCompileFold("Compile nimgrep", "tools/nimgrep.nim", options = "-d:release " & args) when defined(windows): buildVccTool(args) - nimCompileFold("Compile nimpretty", "nimpretty/nimpretty.nim", - options = "-d:release " & args) + bundleNimpretty(args) nimCompileFold("Compile nimfind", "tools/nimfind.nim", options = "-d:release " & args) nimCompileFold("Compile testament", "testament/testament.nim", -- cgit 1.4.1-2-gfad0