summary refs log tree commit diff stats
path: root/compiler/main.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-12-21 17:14:31 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-12-21 17:14:31 +0100
commitda90657317e8a57bae80ebd2d637a972d3b438ab (patch)
tree26e55e5d379c0a8cebc045959cc767939e797fa4 /compiler/main.nim
parent5516fee1a7f5fe2f44592b91a93c379f6181e48e (diff)
downloadNim-da90657317e8a57bae80ebd2d637a972d3b438ab.tar.gz
make the new --genDeps feature optional since it makes compilations slower
Diffstat (limited to 'compiler/main.nim')
-rw-r--r--compiler/main.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index db03f0e4d..08fc4b138 100644
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -80,7 +80,8 @@ proc commandCompileToC(graph: ModuleGraph; cache: IdentCache) =
     let proj = changeFileExt(gProjectFull, "")
     extccomp.callCCompiler(proj)
     extccomp.writeJsonBuildInstructions(proj)
-    writeDepsFile(graph, toGeneratedFile(proj, ""))
+    if optGenScript in gGlobalOptions:
+      writeDepsFile(graph, toGeneratedFile(proj, ""))
 
 proc commandJsonScript(graph: ModuleGraph; cache: IdentCache) =
   let proj = changeFileExt(gProjectFull, "")