D-Programming-Language/druntime — pull request #228 by jacob-carlborg (2012-05-26 16:13:33+00:00)
Title: Fix issue 7995: D runtime initialization from C fails on OSX in 2.059, worked in 2.058.

Second try.

I also refactored the startup code to remove duplicated code.
This will hopefully reduce this kind of bugs in the future.

I had to remove the call to "runModuleUnitTests" in "rt_init". Meaning the unit tests won't be run if the runtime is just initialized via "rt_init". This basically only happens if you start the D runtime from a C application. The unit tests are still run, just as before, for all D applications with a D main function. Don't know if this is a problem or not.