How can I run following code with DUB?
//app.d
import std.stdio;
import a;
static this() {
writeln("b");
}
void main() {
}
//a.d
import std.stdio;
import app;
static this() {
writeln("a");
}
I executed:
dub run -- "--DRT-oncycle=ignore"
But DUB says
object.Error@src\rt\minfo.d(377): Cyclic dependency between module app and a
The runtime argument doesn't seem to be passed to the executable.
I tried:
a.exe --DRT-oncycle=ignore
then it works (prints 'b' and 'a').
How can I pass "--DRT-oncycle=ignore" to an executable?
Thanks.