Fix include of stdlib in recurse
This commit is contained in:
parent
9fc0bb99b3
commit
295e838bc1
1 changed files with 3 additions and 1 deletions
|
|
@ -226,7 +226,9 @@ proc getPreprocessor*(fullpath: string, mode = "cpp"): string =
|
||||||
elif not ("\\" in line) and not ("/" in line) and extractFilename(sfile) in line:
|
elif not ("\\" in line) and not ("/" in line) and extractFilename(sfile) in line:
|
||||||
start = true
|
start = true
|
||||||
elif gStateRT.recurse:
|
elif gStateRT.recurse:
|
||||||
if sfile.parentDir() in saniLine:
|
let
|
||||||
|
pDir = sfile.expandFilename().parentDir()
|
||||||
|
if pDir.len == 0 or pDir in saniLine:
|
||||||
start = true
|
start = true
|
||||||
else:
|
else:
|
||||||
for inc in gStateRT.includeDirs:
|
for inc in gStateRT.includeDirs:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue