diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-03-14 10:46:13 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-03-14 10:46:13 -0500 |
| commit | 295e838bc18aa52c5213ed2172f615511bf7a906 (patch) | |
| tree | 469323d0fd1162b88f9f565eec50f477ee5f4d7a | |
| parent | 9fc0bb99b30487b73f6f6bcec843944a8d33665d (diff) | |
| download | nimterop-295e838bc18aa52c5213ed2172f615511bf7a906.tar.gz nimterop-295e838bc18aa52c5213ed2172f615511bf7a906.zip | |
Fix include of stdlib in recurse
| -rw-r--r-- | nimterop/getters.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nimterop/getters.nim b/nimterop/getters.nim index 63836e3..8504d34 100644 --- a/nimterop/getters.nim +++ b/nimterop/getters.nim @@ -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: |
