[Scons-dev] Problematic conflicts between C/C++ and D

Bill Deegan bill at baddogconsulting.com
Mon Aug 28 18:41:45 EDT 2017


so a better solution would be:

env['SHOBJSUFFIX'] = env.get('SHOBJSUFFIX','.os')

?

On Mon, Aug 28, 2017 at 2:17 AM, Russel Winder <russel at winder.org.uk> wrote:

> On Wed, 2017-08-23 at 09:56 -0700, Bill Deegan wrote:
> > Don't avoid TARGET..
> >
> > Here's where it's defined:
> > src/engine/SCons//Tool/cc.py:    env['SHOBJSUFFIX'] = '.os'
> > src/engine/SCons//Tool/cxx.py:    env['SHOBJSUFFIX'] = '.os'
> >
> > Will setting the SHOBJSUFFIX in the relevant D tools do the trick?
>
> The problem is that the setting is global in the default tool set so it
> being set to .os in cc and cxx affects all the global default tool set.
> If I set this is the dmd, ldc, and gdc tools to .o then it breaks the
> cc and cxx tools. Been there, tried this, removed the experiment.
>
> The default tools share a single namespace of environment variables and
> this is the problem if the tools disagree on anything. In this case the
> majority has to win so the dmd and ldc tools are just going to have to
> remain broken in the default toolset. :-(
>
> --
> Russel.
> ============================================================
> =================
> Dr Russel Winder      t: +44 20 7585 2200   voip:
> sip:russel.winder at ekiga.net
> 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
> London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
>
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20170828/c3c0046d/attachment.html>


More information about the Scons-dev mailing list