summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-01-28 15:14:39 +0100
committerAndreas Rumpf <rumpf_a@web.de>2015-01-28 15:14:39 +0100
commit190cc01f2407629a31d0796eb55283fce7ec8093 (patch)
tree7bfe79d24264f1641428449c0e3d63c4d69cfaa6 /compiler
parentd9c73b49d16c64db841185d4a3efe32bc4d4dc1f (diff)
parent842c7f67ca06266d99577a31718ae1084cde033d (diff)
downloadNim-190cc01f2407629a31d0796eb55283fce7ec8093.tar.gz
Merge pull request #2017 from reactormonk/nodejs-binary
Algorithm to find the nodejs binary
Diffstat (limited to 'compiler')
-rw-r--r--compiler/nim.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/nim.nim b/compiler/nim.nim
index b23d438e0..617758b2d 100644
--- a/compiler/nim.nim
+++ b/compiler/nim.nim
@@ -15,7 +15,8 @@ when defined(gcc) and defined(windows):
 
 import
   commands, lexer, condsyms, options, msgs, nversion, nimconf, ropes,
-  extccomp, strutils, os, osproc, platform, main, parseopt, service
+  extccomp, strutils, os, osproc, platform, main, parseopt, service,
+  nodejs
 
 when hasTinyCBackend:
   import tccgen
@@ -67,7 +68,7 @@ proc handleCmdLine() =
           else:
             ex = quoteShell(
               completeCFilePath(changeFileExt(gProjectFull, "js").prependCurDir))
-          execExternalProgram("node " & ex & ' ' & commands.arguments)
+          execExternalProgram(findNodeJs() & " " & ex & ' ' & commands.arguments)
         else:
           var binPath: string
           if options.outFile.len > 0: