summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-12-16 20:51:41 +0100
committerGitHub <noreply@github.com>2018-12-16 20:51:41 +0100
commit0409f2348e2ac69a717e4ec7628a99c49fd42f0d (patch)
treeae129c3a350d75afac90ae4458452fa5f219426e
parent9526009e0eb89b3ce2b881cb35384f9b3ef1e02c (diff)
parente70c6af1882ad1a13567993a7a06b131fd6c9025 (diff)
downloadNim-0409f2348e2ac69a717e4ec7628a99c49fd42f0d.tar.gz
Merge pull request #10012 from nc-x/header-path
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..69705db43 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