diff options
author | Araq <rumpf_a@web.de> | 2013-10-29 01:07:59 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-10-29 01:07:59 +0100 |
commit | b4e25a6372ffed291ccbba6874723baa55fa0bf9 (patch) | |
tree | 7c8d6594395f390eaea020c024af4559fa1ea79a /koch.nim | |
parent | 6ea538cec3f2da832873252d0ec3810b9dbfede4 (diff) | |
download | Nim-b4e25a6372ffed291ccbba6874723baa55fa0bf9.tar.gz |
new VM is getting stable
Diffstat (limited to 'koch.nim')
-rw-r--r-- | koch.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/koch.nim b/koch.nim index 97fcf5b2c..26dde73ea 100644 --- a/koch.nim +++ b/koch.nim @@ -45,6 +45,7 @@ Possible Commands: tests run the testsuite update updates nimrod to the latest version from github (compile koch with -d:withUpdate to enable) + temp options creates a temporary compiler for testing Boot options: -d:release produce a release version of the compiler -d:tinyc include the Tiny C backend (not supported on Windows) @@ -268,6 +269,13 @@ proc tests(args: string) = exec(getCurrentDir() / "tests/tester".exe & " run") exec(getCurrentDir() / "tests/tester".exe & " merge") +proc temp(args: string) = + var output = "compiler" / "nimrod".exe + var finalDest = "bin" / "nimrod".exe + exec("nimrod c compiler" / "nimrod") + copyExe(output, finalDest) + if args.len > 0: exec(finalDest & " " & args) + proc showHelp() = quit(HelpText % [NimrodVersion & repeatChar(44-len(NimrodVersion)), CompileDate, CompileTime]) @@ -291,6 +299,7 @@ of cmdArgument: update(op.cmdLineRest) else: quit "this Koch has not been compiled with -d:withUpdate" + of "temp": temp(op.cmdLineRest) else: showHelp() of cmdEnd: showHelp() |