www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - SCons and gdc

reply "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
This message is specifically addressed to Russel Winder, but I'm posting
it here as it may concern other D SCons users too.

I've been using Russel's new D tooling to great effect -- it has been
working quite well with dmd. However, I'm wondering if there's a way to
make it work correctly for gdc (which uses gcc-style command-line
syntax)? Currently, it tries to run gdc with dmd-style syntax, which
causes object files to be wrongly named (-offilename.o gets interpreted
as -o ffilename.o by gdc).

A temporary workaround is to use gdmd, of course, but I'd like to be
able to access the gcc-style gdc-specific options for my builds.

Thanks!


T

-- 
A bend in the road is not the end of the road unless you fail to make the turn.
-- Brian White
Oct 22 2012
parent reply Jacob Carlborg <doob me.com> writes:
On 2012-10-22 19:55, H. S. Teoh wrote:

 A temporary workaround is to use gdmd, of course, but I'd like to be
 able to access the gcc-style gdc-specific options for my builds.
Perhaps gdmd has a flag which lets you pass gdc/gcc specific flags. -- /Jacob Carlborg
Oct 22 2012
parent "jerro" <a a.com> writes:
On Monday, 22 October 2012 at 19:17:51 UTC, Jacob Carlborg wrote:
 On 2012-10-22 19:55, H. S. Teoh wrote:

 A temporary workaround is to use gdmd, of course, but I'd like 
 to be
 able to access the gcc-style gdc-specific options for my 
 builds.
Perhaps gdmd has a flag which lets you pass gdc/gcc specific flags.
It does, it's the -q flag.
Oct 22 2012