Merge pull request #645 from genotrance/nocompiler-fixes-3

Fix nocompiler for recursive nimble calls
This commit is contained in:
Dominik Picheta 2019-05-03 09:39:13 +01:00 committed by GitHub
commit 7fd3148cc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,9 @@ proc execNimscript(nimsFile, projectDir, actionName: string, options: Options,
nimsFile.copyFile(nimsFileCopied)
defer:
nimsFileCopied.removeFile()
# Only if copied in this invocation, allows recursive calls of nimble
if not isScriptResultCopied:
nimsFileCopied.removeFile()
let
cmd = ("nim e --hints:off --verbosity:0 -p:" & (getTempDir() / "nimblecache").quoteShell &