From c99407b07a1ed5a09a518dca0690732287b6605f Mon Sep 17 00:00:00 2001 From: Neelesh Chandola Date: Sun, 16 Dec 2018 11:39:29 +0530 Subject: Add project directory to include path --- compiler/extccomp.nim | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit 1.4.1-2-gfad0