mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
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.
(cherry picked from commit fb00b482eb)
This commit is contained in:
committed by
narimiran
parent
b6ed118f0c
commit
f111afc319
@@ -10,6 +10,8 @@ skipDirs = @["build" , "changelogs" , "ci" , "csources_v1" , "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"
|
||||
|
||||
Reference in New Issue
Block a user