summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-05-16 04:09:18 -0700
committerGitHub <noreply@github.com>2020-05-16 13:09:18 +0200
commitc777f2fb608e1f42daf31d314dda0050f6354acd (patch)
tree1fa2341dda9dc9da49fc5745360c81cc023d5b26 /lib
parentc32e1378eb7d62d59c9e24322c282556c821030a (diff)
downloadNim-c777f2fb608e1f42daf31d314dda0050f6354acd.tar.gz
fix some issues with --backend (#14363)
* fix some issues with --backend
* fix https://github.com/timotheecour/Nim/issues/175; improve upon #14306
Diffstat (limited to 'lib')
-rw-r--r--lib/packages/docutils/rstgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/packages/docutils/rstgen.nim b/lib/packages/docutils/rstgen.nim
index edd987a76..816d724ef 100644
--- a/lib/packages/docutils/rstgen.nim
+++ b/lib/packages/docutils/rstgen.nim
@@ -865,7 +865,7 @@ proc parseCodeBlockField(d: PDoc, n: PRstNode, params: var CodeBlockParams) =
   of "test":
     params.testCmd = n.getFieldValue.strip
     if params.testCmd.len == 0:
-      params.testCmd = "nim <backend> -r $1" # The nim backend is auto-set in docgen.nim
+      params.testCmd = "$nim r --backend:$backend $options" # see `interpSnippetCmd`
     else:
       params.testCmd = unescape(params.testCmd)
   of "status", "exitcode":