fix some issues with --backend (#14363)
* fix some issues with --backend * fix https://github.com/timotheecour/Nim/issues/175; improve upon #14306
This commit is contained in:
parent
c32e1378eb
commit
c777f2fb60
11 changed files with 125 additions and 59 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue