mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-14 15:23:27 +00:00
[backport] bundle nimpretty on Windows (#12358)
This commit is contained in:
8
koch.nim
8
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",
|
||||
|
||||
Reference in New Issue
Block a user