summary refs log tree commit diff stats
path: root/compiler/extccomp.nim
diff options
context:
space:
mode:
authorMichael Voronin <survivor.mail@gmail.com>2018-04-25 12:26:59 +0300
committerGitHub <noreply@github.com>2018-04-25 12:26:59 +0300
commit3949c9f977378ea3ab2b3c750f4dc2bc8d853022 (patch)
treee70fadb316aa330bd22694a71568316a103fecdd /compiler/extccomp.nim
parent17d3c6f3f32649c7cc295e964e2fcc3af99eac20 (diff)
parente931f3b5a9643e0d7ac45b88b0bddb32dda4c540 (diff)
downloadNim-3949c9f977378ea3ab2b3c750f4dc2bc8d853022.tar.gz
Merge pull request #2 from nim-lang/devel
Pull 25-04-18
Diffstat (limited to 'compiler/extccomp.nim')
-rw-r--r--compiler/extccomp.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim
index f9b18a335..f8938e3af 100644
--- a/compiler/extccomp.nim
+++ b/compiler/extccomp.nim
@@ -470,8 +470,9 @@ proc execExternalProgram*(cmd: string, msg = hintExecuting) =
 
 proc generateScript(projectFile: string, script: Rope) =
   let (dir, name, ext) = splitFile(projectFile)
-  writeRope(script, dir / addFileExt("compile_" & name,
+  writeRope(script, getNimcacheDir() / addFileExt("compile_" & name,
                                      platform.OS[targetOS].scriptExt))
+  copyFile(libpath / "nimbase.h", getNimcacheDir() / "nimbase.h")
 
 proc getOptSpeed(c: TSystemCC): string =
   result = getConfigVar(c, ".options.speed")