doc gen :test: feature: created a nested directory in order to keep Nim happy in parallel builds

This commit is contained in:
Araq
2017-11-28 23:13:46 +01:00
parent cb8dd0252f
commit 7660e59afe

View File

@@ -805,7 +805,10 @@ proc commandRstAux(filename, outExt: string) =
var outp: string
if filename.len == 0:
inc(d.id)
outp = completeGeneratedFilePath(splitFile(d.filename).name & "_snippet_" & $d.id & ".nim")
let nameOnly = splitFile(d.filename).name
let subdir = getNimcacheDir() / nameOnly
createDir(subdir)
outp = subdir / (nameOnly & "_snippet_" & $d.id & ".nim")
elif isAbsolute(filename):
outp = filename
else: