Hi,
I would like to use runnableExamples in a module that needs to be compiled in cpp mode and that needs to be linked against several C++ shared object files. Currently the nim doc command that I implemented in the nimble file fails because it is not aware of these requirements. Is there a way to handle this?
Many thanks in advance.
Kind regards, Axel
I needed this feature few weeks back and opened this issue: https://github.com/nim-lang/Nim/issues/13129.
It's on my list to try to implement the suggested -backend switch for nim doc that uses the specified backend for compiling and running the runnableExamples and :test: code block examples.
Ah, cool, yes I saw you tried to use a -d:doccpp switch in your std_vector repo, but I did not find the issue on Github. Thanks a lot!
KR Axel
Yeah that's a local hack (that works).. the back is in the associated closed PR.
The real fix is pending because I don't know yet how to add the --backend switch just to the doc subcommand.