I have a need to compile a different source file in my project and I use a primitive solution.
import std/osproc
let command = &"nim compile {options} {source}"
command.execCmd()
However, I think it would be more appropriate to do something like this, but the compiler module can't import.
import std/compiler
source.compile()
It is possible to import the compiler in this way and what module needs to be imported?
thanks