dmd -o- option meaning changed recently? Now not creating OBJ but also not creating EXE

Dicebot via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Oct 3 02:06:32 PDT 2016


On Sunday, 2 October 2016 at 21:05:25 UTC, A D dev wrote:
> One last point:
>
> If that was always the behavior (in all versions from 2010 - or 
> earlier), i.e. -o- generates neither .OBJ nor .EXE, then what 
> is the purpose of the option? does it act as just a syntax 
> check?

Purpose is to skip code generation and only do syntax/semantic 
validation. Very helpful when testing compiler because:

a) it takes less time speeding up overall test suite
b) doesn't require runtime static library to succeed, thus 
simplifying setup


More information about the Digitalmars-d-learn mailing list