diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index 23f723e29f..69705db43c 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, quoteShell(conf.projectPath.string)])) + var cf = if noAbsolutePaths(conf): AbsoluteFile extractFilename(cfile.cname.string) else: cfile.cname