Add project directory to include path

This commit is contained in:
Neelesh Chandola
2018-12-16 11:39:29 +05:30
parent b53327c92a
commit c99407b07a

View File

@@ -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