Add check for absolute directories
This commit is contained in:
parent
15d417d2c5
commit
512cdd3a9f
1 changed files with 8 additions and 5 deletions
|
|
@ -491,6 +491,9 @@ proc c2nim(fl, outfile: string, c2nimConfig: c2nimConfigObj) =
|
|||
passC &= "import ospaths\n"
|
||||
|
||||
for inc in gIncludes:
|
||||
if inc.isAbsolute:
|
||||
passC &= ("""{.passC: "-I\"$#\"".}""" % [inc]) & "\n"
|
||||
else:
|
||||
let relativeInc = inc.replace(gOutput, "")
|
||||
passC &= (
|
||||
"""{.passC: "-I\"" & currentSourcePath().splitPath().head & "/$#\"".}""" %
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue