diff options
author | Michał Zieliński <michal@zielinscy.org.pl> | 2013-12-11 22:27:39 +0100 |
---|---|---|
committer | Michał Zieliński <michal@zielinscy.org.pl> | 2013-12-11 22:27:39 +0100 |
commit | 39cabcdd2702098825eba32fcbc6737b9aa45e6e (patch) | |
tree | 3b7c197d58d2a0f55692df9dc9a2416c53944a09 /compiler/nimrod.nim | |
parent | c36319727558f92a47f7aa5fed1d696d63b48d65 (diff) | |
download | Nim-39cabcdd2702098825eba32fcbc6737b9aa45e6e.tar.gz |
Use quoteShell in stdlib, where appropriate.
Diffstat (limited to 'compiler/nimrod.nim')
-rw-r--r-- | compiler/nimrod.nim | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/nimrod.nim b/compiler/nimrod.nim index 2f10e32e3..8e3c0e61e 100644 --- a/compiler/nimrod.nim +++ b/compiler/nimrod.nim @@ -13,9 +13,9 @@ when defined(gcc) and defined(windows): else: {.link: "icons/nimrod_icon.o".} -import - commands, lexer, condsyms, options, msgs, nversion, nimconf, ropes, - extccomp, strutils, os, platform, main, parseopt, service +import + commands, lexer, condsyms, options, msgs, nversion, nimconf, ropes, + extccomp, strutils, os, osproc, platform, main, parseopt, service when hasTinyCBackend: import tccgen @@ -23,7 +23,7 @@ when hasTinyCBackend: when defined(profiler) or defined(memProfiler): {.hint: "Profiling support is turned on!".} import nimprof - + proc prependCurDir(f: string): string = when defined(unix): if os.isAbsolute(f): result = f @@ -61,11 +61,11 @@ proc HandleCmdLine() = tccgen.run() if optRun in gGlobalOptions: if gCmd == cmdCompileToJS: - var ex = quoteIfContainsWhite( + var ex = quoteShell( completeCFilePath(changeFileExt(gProjectFull, "js").prependCurDir)) execExternalProgram("node " & ex & ' ' & service.arguments) else: - var ex = quoteIfContainsWhite( + var ex = quoteShell( changeFileExt(gProjectFull, exeExt).prependCurDir) execExternalProgram(ex & ' ' & service.arguments) |