www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - scons and D: flags

reply Ellery Newcomer <ellery-newcomer utulsa.edu> writes:
how do you pass compiler flags through scons?

e.g. -unittest, -property
Sep 11 2012
parent reply Russel Winder <russel winder.org.uk> writes:
On Tue, 2012-09-11 at 10:40 -0700, Ellery Newcomer wrote:
 how do you pass compiler flags through scons?
=20
 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. --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 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
Sep 11 2012
parent reply Ellery Newcomer <ellery-newcomer utulsa.edu> writes:
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.
Sep 11 2012
parent Russel Winder <russel winder.org.uk> writes:
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. --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 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
Sep 11 2012