summary refs log tree commit diff stats
path: root/compiler/main.nim
diff options
context:
space:
mode:
authorzah <zahary@gmail.com>2019-03-08 16:23:36 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-03-08 15:23:36 +0100
commitb9f8528db675927aacc6443ae3a363711bb41945 (patch)
tree49d27a29d8fc67daa51f34db9b3647c29c1255ba /compiler/main.nim
parentbba3a20e7ca50456fa1fc96ec4fa7e917113a840 (diff)
downloadNim-b9f8528db675927aacc6443ae3a363711bb41945.tar.gz
Don't include the nimhcr dev docs in the system module documentation (#10759)
Diffstat (limited to 'compiler/main.nim')
-rw-r--r--compiler/main.nim4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index 154252bf3..84a0fb97d 100644
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -63,9 +63,7 @@ proc commandCheck(graph: ModuleGraph) =
 
 when not defined(leanCompiler):
   proc commandDoc2(graph: ModuleGraph; json: bool) =
-    if optWholeProject in graph.config.globalOptions:
-      # Backward compatibility with previous versions
-      graph.config.outDir = AbsoluteDir(graph.config.outDir / graph.config.outFile)
+    handleDocOutputOptions graph.config
     graph.config.errorMax = high(int)  # do not stop after first error
     semanticPasses(graph)
     if json: registerPass(graph, docgen2JsonPass)