diff --git a/src/dmd/compiler.d b/src/dmd/compiler.d index db0e4eb9b832..fb407bdf1a4c 100644 --- a/src/dmd/compiler.d +++ b/src/dmd/compiler.d @@ -66,7 +66,7 @@ struct Compiler */ extern (C++) static void genCmain(Scope* sc) { - if (entrypoint) + if (entrypoint || global.params.dnostdlib) return; /* The D code to be generated is provided as D source code in the form of a string. * Note that Solaris, for unknown reasons, requires both a main() and an _main()