summary refs log tree commit diff stats
path: root/nim.nimble
diff options
context:
space:
mode:
authorIvan Yonchovski <yyoncho@users.noreply.github.com>2023-03-20 19:49:59 +0200
committerGitHub <noreply@github.com>2023-03-20 18:49:59 +0100
commitfb00b482eb1ed685c93034360467ee76238e6548 (patch)
tree71661df7e123c308393925c5a3af8face3908750 /nim.nimble
parentba22826e9b4100eab6dc8cd1182e75324c0b4c11 (diff)
downloadNim-fb00b482eb1ed685c93034360467ee76238e6548.tar.gz
Avoid calling build_all* when nim binary is present (#21522)
- `nimble` will build `nim` using `bin/nim` and if it is already present we can
reuse it.
Diffstat (limited to 'nim.nimble')
-rw-r--r--nim.nimble6
1 files changed, 4 insertions, 2 deletions
diff --git a/nim.nimble b/nim.nimble
index 380ffbce8..b0253f66d 100644
--- a/nim.nimble
+++ b/nim.nimble
@@ -10,6 +10,8 @@ skipDirs = @["build" , "changelogs" , "ci" , "csources_v2" , "drnim" , "nimdoc",
 
 before install:
   when defined(windows):
-    exec "build_all.bat"
+    if not "bin\nim.exe".fileExists:
+      exec "build_all.bat"
   else:
-    exec "./build_all.sh"
+    if not "bin/nim".fileExists:
+      exec "./build_all.sh"