Merge branch 'master' into nimscript-support

This commit is contained in:
Dominik Picheta 2015-11-25 11:50:06 +00:00
commit a5b23fd226
2 changed files with 8 additions and 8 deletions

View file

@ -57,9 +57,9 @@ On Windows installing Nimble from source is slightly more complex:
git clone https://github.com/nim-lang/nimble.git
cd nimble
nim c src\nimble
cp src\nimble.exe src\nimble1.exe
src\nimble1.exe install
nim c src/nimble
cp src/nimble.exe src/nimble1.exe
src/nimble1.exe install
This is required because Windows will lock the process which is being run and
during installation Nimble will recompile itself.

View file

@ -36,8 +36,8 @@ template cd*(dir: string, body: stmt) =
proc getNimBin*: string =
result = "nim"
if findExe("nim") != "": result = "nim"
elif findExe("nimrod") != "": result = "nimrod"
if findExe("nim") != "": result = findExe("nim")
elif findExe("nimrod") != "": result = findExe("nimrod")
proc getNimrodVersion*: Version =
let nimBin = getNimBin()