Just-run-the-unittests

Rikki Cattermole alphaglosined at gmail.com
Sun Mar 16 16:38:19 PDT 2014


On Sunday, 16 March 2014 at 20:22:15 UTC, Dicebot wrote:
> On Sunday, 16 March 2014 at 12:57:04 UTC, Rikki Cattermole 
> wrote:
>> On Sunday, 16 March 2014 at 10:15:00 UTC, Andrej Mitrovic 
>> wrote:
>>> It can't work, because main could be stored in a pre-built 
>>> object or
>>> static library that's passed to DMD.
>>
>> Hmm I really should consider making a DIP for a deferred CTFE 
>> block. Could really come in handy for a situation like this. 
>> In the format of if -main specified use e.g. -version=D_Main 
>> to remove the call to _Dmain symbol. Removes the whole linker 
>> issue altogether.
>
> Linker will still complain about duplicate symbols. This issue 
> can't be solved within existing C-compatible object file 
> toolchain.

I was inferring that no stub _Dmain would be added. Since it 
would no longer be called.


More information about the Digitalmars-d-learn mailing list