We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7d37e7 commit f7140a3Copy full SHA for f7140a3
src/nimblepkg/nimenv.nim
@@ -21,6 +21,11 @@ proc infoAboutActivation(nimDest, nimVersion: string) =
21
display("Info", nimDest & "installed; activate with 'source nim-" & nimVersion & "activate.sh'")
22
23
proc compileNim*(options: Options, nimDest: string, v: VersionRange) =
24
+ #Most of the time we dont need to recompile, if we can get the nim version from the binary .
25
+ let nimCompVersion = getNimVersionFromBin(nimDest / "bin" / "nim".addFileExt(ExeExt))
26
+ if nimCompVersion.isSome() and nimCompVersion.get.withinRange(v):
27
+ return
28
+
29
let keepCsources = options.useSatSolver #SAT Solver has a cache instead of a temp dir for downloads
30
template exec(command: string) =
31
let cmd = command # eval once
0 commit comments