diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-12-14 08:49:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 17:49:39 +0100 |
commit | 2728711dd3dbe8b1c2cd7dd6f15f696b58b77ea6 (patch) | |
tree | 129bcf49f1b3d6823ae024038d44e15ac374fb5b | |
parent | 8f6e07a9a2b8aaa05671b3e3bdd4f95f5c2f1b71 (diff) | |
download | Nim-2728711dd3dbe8b1c2cd7dd6f15f696b58b77ea6.tar.gz |
fix #16248 forward --lib to runnableExamples (#16350)
-rw-r--r-- | compiler/docgen.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim index 7b3b62174..824fafd6b 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -468,10 +468,11 @@ proc runAllExamples(d: PDoc) = writeFile(outp, group.code) # most useful semantics is that `docCmd` comes after `rdoccmd`, so that we can (temporarily) override # via command line - let cmd = "$nim $backend -r --warning:UnusedImport:off --path:$path --nimcache:$nimcache $rdoccmd $docCmd $file" % [ + let cmd = "$nim $backend -r --lib:$libpath --warning:UnusedImport:off --path:$path --nimcache:$nimcache $rdoccmd $docCmd $file" % [ "nim", os.getAppFilename(), "backend", $d.conf.backend, "path", quoteShell(d.conf.projectPath), + "libpath", quoteShell(d.conf.libpath), "nimcache", quoteShell(outputDir), "file", quoteShell(outp), "rdoccmd", group.rdoccmd, |