summary refs log tree commit diff stats
path: root/tools/niminst
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@gmail.com>2016-10-16 16:40:00 +0200
committerDominik Picheta <dominikpicheta@gmail.com>2016-10-16 16:40:00 +0200
commitb3c18b8dd8156793db3022c020ada17c3017af37 (patch)
tree78cfdde7fa733546945d6c9e80da3d73842bfbcd /tools/niminst
parent0e7ff0df5fe57278d1367b5e31db6f3811c93298 (diff)
downloadNim-b3c18b8dd8156793db3022c020ada17c3017af37.tar.gz
Improve niminst zip error message and fix CI build.
Diffstat (limited to 'tools/niminst')
-rw-r--r--tools/niminst/niminst.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/niminst/niminst.nim b/tools/niminst/niminst.nim
index bb56c3dc1..feab698fd 100644
--- a/tools/niminst/niminst.nim
+++ b/tools/niminst/niminst.nim
@@ -630,6 +630,10 @@ proc xzDist(c: var ConfigData; windowsZip=false) =
     if not dirExists(destDir): createDir(destDir)
     copyFileWithPermissions(src, dest)
 
+  if not existsFile("build" / buildBatFile32):
+    quit("No C sources found in ./build/, please build by running " &
+         "./koch csource -d:release.")
+
   processFile(proj / buildBatFile32, "build" / buildBatFile32)
   processFile(proj / buildBatFile64, "build" / buildBatFile64)
   processFile(proj / buildShFile, "build" / buildShFile)