diff options
author | Miran <narimiran@disroot.org> | 2019-10-04 17:13:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-04 17:13:04 +0200 |
commit | 2909e413707513fdbca3c387366ce9e9ecad4f37 (patch) | |
tree | eabb184db36071b42c6f306d4a36831288d041d5 /koch.nim | |
parent | 60d64d1aeffe6020eb591eca4be7ae672e45edc0 (diff) | |
download | Nim-2909e413707513fdbca3c387366ce9e9ecad4f37.tar.gz |
[backport] bundle nimpretty on Windows (#12358)
Diffstat (limited to 'koch.nim')
-rw-r--r-- | koch.nim | 8 |
1 files changed, 6 insertions, 2 deletions
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", |