From 2728711dd3dbe8b1c2cd7dd6f15f696b58b77ea6 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Mon, 14 Dec 2020 08:49:39 -0800 Subject: fix #16248 forward --lib to runnableExamples (#16350) --- compiler/docgen.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- cgit 1.4.1-2-gfad0