diff options
author | mogud <mogudx@163.com> | 2016-08-28 16:09:26 +0800 |
---|---|---|
committer | mogud <mogudx@163.com> | 2016-08-28 16:09:26 +0800 |
commit | d6074a7c7337991c18877689ff8949c3387321ed (patch) | |
tree | 8b2363aa3aff5a885bf88401e3d7e0dbbd280a2d /koch.nim | |
parent | 7aa64941e819566d5c41703d5b1400b46759df79 (diff) | |
download | Nim-d6074a7c7337991c18877689ff8949c3387321ed.tar.gz |
make koch build quietly
Diffstat (limited to 'koch.nim')
-rw-r--r-- | koch.nim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/koch.nim b/koch.nim index eb25a7480..dadbc1f10 100644 --- a/koch.nim +++ b/koch.nim @@ -275,7 +275,7 @@ proc cleanAux(dir: string) = for kind, path in walkDir(dir): case kind of pcFile: - var (dir, name, ext) = splitFile(path) + var (_, name, ext) = splitFile(path) if ext == "" or cleanExt.contains(ext): if not ignore.contains(name): echo "removing: ", path @@ -367,6 +367,7 @@ when defined(withUpdate): # -------------- builds a release --------------------------------------------- +#[ proc run7z(platform: string, patterns: varargs[string]) = const tmpDir = "nim-" & VersionAsString createDir tmpDir @@ -378,6 +379,7 @@ proc run7z(platform: string, patterns: varargs[string]) = exec("7z a -tzip $1-$2.zip $1" % [tmpDir, platform]) finally: removeDir tmpDir +]# proc winRelease() = boot(" -d:release") @@ -396,7 +398,7 @@ proc winRelease() = # -------------- tests -------------------------------------------------------- -template `|`(a, b): expr = (if a.len > 0: a else: b) +template `|`(a, b): string = (if a.len > 0: a else: b) proc tests(args: string) = # we compile the tester with taintMode:on to have a basic |