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.
This commit is contained in:
Ivan Yonchovski
2023-03-20 19:49:59 +02:00
committed by GitHub
parent ba22826e9b
commit fb00b482eb

View File

@@ -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"