diff options
author | Simon Hafner <hafnersimon@gmail.com> | 2015-01-24 18:02:00 -0600 |
---|---|---|
committer | Simon Hafner <hafnersimon@gmail.com> | 2015-01-27 13:02:17 -0600 |
commit | 2beaa7a2da40e336b9606949ba65e0631c775767 (patch) | |
tree | ed794be15497d993fc57ecc60ac6fde138ed6174 /compiler | |
parent | 9c12ad0187746d18589c655475b50571fc28fef4 (diff) | |
download | Nim-2beaa7a2da40e336b9606949ba65e0631c775767.tar.gz |
find the nodejs binary
upstream calls it node, debian calls it nodejs. We gotta look for both of them.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/nim.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/nim.nim b/compiler/nim.nim index a87e0a1ac..553c4635f 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: |