summary refs log tree commit diff stats
path: root/compiler/main.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-12-17 14:22:58 +0100
committerAndreas Rumpf <rumpf_a@web.de>2016-12-17 14:22:58 +0100
commit9ac76b49c0f5f13b7f4095fc436aabbb7385be30 (patch)
treecf85db7680e3b3448195ad50eda0795831f70e56 /compiler/main.nim
parentb0134309292e41a9b29777b5bdd79f2a1278a03d (diff)
parent4fcb6c02659997914d0a78a86e9ad2642edcc07a (diff)
downloadNim-9ac76b49c0f5f13b7f4095fc436aabbb7385be30.tar.gz
Merge branch 'devel' of github.com:nim-lang/Nim into devel
Diffstat (limited to 'compiler/main.nim')
-rw-r--r--compiler/main.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index 2118078be..5896934ce 100644
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -66,7 +66,9 @@ proc commandCompileToC(graph: ModuleGraph; cache: IdentCache) =
   compileProject(graph, cache)
   cgenWriteModules()
   if gCmd != cmdRun:
-    extccomp.callCCompiler(changeFileExt(gProjectFull, ""))
+    let proj = changeFileExt(gProjectFull, "")
+    extccomp.callCCompiler(proj)
+    extccomp.writeJsonBuildInstructions(proj)
 
 proc commandCompileToJS(graph: ModuleGraph; cache: IdentCache) =
   #incl(gGlobalOptions, optSafeCode)