summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorNeelesh Chandola <neelesh.chandola@outlook.com>2018-12-16 11:39:29 +0530
committerNeelesh Chandola <neelesh.chandola@outlook.com>2018-12-16 11:39:29 +0530
commitc99407b07a1ed5a09a518dca0690732287b6605f (patch)
tree77525c51cec2d10fa3bae864cc4997dea3d28148
parentb53327c92a1c685ab71917cabedbf441f7f5fd2d (diff)
downloadNim-c99407b07a1ed5a09a518dca0690732287b6605f.tar.gz
Add project directory to include path
-rw-r--r--compiler/extccomp.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim
index 23f723e29..99e2534ec 100644
--- a/compiler/extccomp.nim
+++ b/compiler/extccomp.nim
@@ -567,6 +567,8 @@ proc getCompileCFileCmd*(conf: ConfigRef; cfile: Cfile): string =
     includeCmd = ""
     compilePattern = getCompilerExe(conf, c, cfile.cname)
 
+  includeCmd.add(join([CC[c].includeCmd, conf.projectPath.string]))
+
   var cf = if noAbsolutePaths(conf): AbsoluteFile extractFilename(cfile.cname.string)
            else: cfile.cname