diff options
author | Neelesh Chandola <neelesh.chandola@outlook.com> | 2018-12-16 11:39:29 +0530 |
---|---|---|
committer | Neelesh Chandola <neelesh.chandola@outlook.com> | 2018-12-16 11:39:29 +0530 |
commit | c99407b07a1ed5a09a518dca0690732287b6605f (patch) | |
tree | 77525c51cec2d10fa3bae864cc4997dea3d28148 | |
parent | b53327c92a1c685ab71917cabedbf441f7f5fd2d (diff) | |
download | Nim-c99407b07a1ed5a09a518dca0690732287b6605f.tar.gz |
Add project directory to include path
-rw-r--r-- | compiler/extccomp.nim | 2 |
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 |