bugfix: osproc compiles under windows again

This commit is contained in:
Araq 2011-01-07 21:08:10 +01:00
commit 8c799da867
2 changed files with 2 additions and 2 deletions

View file

@ -124,8 +124,8 @@ proc bootIteration(args: string): bool =
exec "rod" / "nimrod1 cc $# $# rod/nimrod.nim" % [bootOptions, args] exec "rod" / "nimrod1 cc $# $# rod/nimrod.nim" % [bootOptions, args]
# Nimrod does not produce an executable again if nothing changed. That's ok: # Nimrod does not produce an executable again if nothing changed. That's ok:
result = sameFileContent("rod" / "nimrod".exe, nimrod1) result = sameFileContent("rod" / "nimrod".exe, nimrod1)
safeRemove("bin" / "nimrod".exe)
var dest = "bin" / "nimrod".exe var dest = "bin" / "nimrod".exe
safeRemove(dest)
copyFile(dest=dest, source="rod" / "nimrod".exe) copyFile(dest=dest, source="rod" / "nimrod".exe)
inclFilePermissions(dest, {fpUserExec}) inclFilePermissions(dest, {fpUserExec})
safeRemove(nimrod1) safeRemove(nimrod1)

View file

@ -319,7 +319,7 @@ when defined(Windows) and not defined(useNimRtl):
result.errorHandle = si.hStdError result.errorHandle = si.hStdError
var cmdl: cstring var cmdl: cstring
if false: # poUseShell in options: when false: # poUseShell in options:
cmdl = buildCommandLine(getEnv("COMSPEC"), @["/c", command] & args) cmdl = buildCommandLine(getEnv("COMSPEC"), @["/c", command] & args)
else: else:
cmdl = buildCommandLine(command, args) cmdl = buildCommandLine(command, args)