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:
|
||||
start = true
|
||||
elif gStateRT.recurse:
|
||||
if sfile.parentDir() in saniLine:
|
||||
let
|
||||
pDir = sfile.expandFilename().parentDir()
|
||||
if pDir.len == 0 or pDir in saniLine:
|
||||
start = true
|
||||
else:
|
||||
for inc in gStateRT.includeDirs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue