diff options
author | Michael Voronin <survivor.mail@gmail.com> | 2018-04-25 12:26:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-25 12:26:59 +0300 |
commit | 3949c9f977378ea3ab2b3c750f4dc2bc8d853022 (patch) | |
tree | e70fadb316aa330bd22694a71568316a103fecdd /compiler/extccomp.nim | |
parent | 17d3c6f3f32649c7cc295e964e2fcc3af99eac20 (diff) | |
parent | e931f3b5a9643e0d7ac45b88b0bddb32dda4c540 (diff) | |
download | Nim-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.nim | 3 |
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") |