summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorVarriount <clay.sweetser@gmail.com>2015-01-17 20:17:36 -0500
committerVarriount <clay.sweetser@gmail.com>2015-01-17 20:17:36 -0500
commitd630f72b8112b4ec7ff6340b9969df0d6d201cd9 (patch)
treebfba7ad339ca7bccfee5c44c66c92486a840ecff
parent78b5779d93948d0438c171f7e464bf79a878f819 (diff)
downloadNim-d630f72b8112b4ec7ff6340b9969df0d6d201cd9.tar.gz
Fixes #1955
-rw-r--r--compiler/extccomp.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim
index d61594cba..bc888315f 100644
--- a/compiler/extccomp.nim
+++ b/compiler/extccomp.nim
@@ -332,7 +332,6 @@ const
     ucc(),
     icl()]
 
-const
   hExt* = ".h"
 
 var
@@ -547,8 +546,9 @@ proc getCompileCFileCmd*(cfilename: string, isExternal = false): string =
                 else:
                   completeCFilePath(toObjFile(cfile))
   objfile = quoteShell(objfile)
+  cfile = quoteShell(cfile)
   result = quoteShell(compilePattern % [
-    "file", quoteShell(cfile), "objfile", quoteShell(objfile), "options", options,
+    "file", cfile, "objfile", objfile, "options", options,
     "include", includeCmd, "nimrod", getPrefixDir(),
     "nim", getPrefixDir(), "lib", libpath])
   add(result, ' ')