Thread overview
scons and D: flags
Sep 11, 2012
Ellery Newcomer
Sep 11, 2012
Russel Winder
Sep 11, 2012
Ellery Newcomer
Sep 11, 2012
Russel Winder
September 11, 2012
how do you pass compiler flags through scons?

e.g. -unittest, -property
September 11, 2012
On Tue, 2012-09-11 at 10:40 -0700, Ellery Newcomer wrote:
> how do you pass compiler flags through scons?
> 
> e.g. -unittest, -property

Depends on the SConstruct (and optionally SConscript), but you need to get a list of the options into the DFLAGS of the environment you are compiling in.

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


September 11, 2012
On 09/11/2012 11:42 AM, Russel Winder wrote:
> On Tue, 2012-09-11 at 10:40 -0700, Ellery Newcomer wrote:
>> how do you pass compiler flags through scons?
>>
>> e.g. -unittest, -property
>
> Depends on the SConstruct (and optionally SConscript), but you need to
> get a list of the options into the DFLAGS of the environment you are
> compiling in.
>

dmd.py's doc header doesn't say this.
September 11, 2012
On Tue, 2012-09-11 at 12:12 -0700, Ellery Newcomer wrote: [...]
> dmd.py's doc header doesn't say this.

That doesn't surprise me :-(  The module documentation is currently worse than poor. Not to mention the entries in the SCons manual are dreadful or non-existent. Might be useful to add issues at Tigris so that these points don't get lost. Also it can act as a driver to get things done by all and sundry.

Thanks.


-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder