summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorNeelesh Chandola <neelesh.chandola@outlook.com>2018-12-16 14:42:57 +0530
committerNeelesh Chandola <neelesh.chandola@outlook.com>2018-12-16 14:42:57 +0530
commite70c6af1882ad1a13567993a7a06b131fd6c9025 (patch)
treefe63170b5ac6f32de02af5657f04fbbf9033de84
parentc99407b07a1ed5a09a518dca0690732287b6605f (diff)
downloadNim-e70c6af1882ad1a13567993a7a06b131fd6c9025.tar.gz
escape the include path
-rw-r--r--compiler/extccomp.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim
index 99e2534ec..69705db43 100644
--- a/compiler/extccomp.nim
+++ b/compiler/extccomp.nim
@@ -567,7 +567,7 @@ proc getCompileCFileCmd*(conf: ConfigRef; cfile: Cfile): string =
     includeCmd = ""
     compilePattern = getCompilerExe(conf, c, cfile.cname)
 
-  includeCmd.add(join([CC[c].includeCmd, conf.projectPath.string]))
+  includeCmd.add(join([CC[c].includeCmd, quoteShell(conf.projectPath.string)]))
 
   var cf = if noAbsolutePaths(conf): AbsoluteFile extractFilename(cfile.cname.string)
            else: cfile.cname