D and SCons [ was Re: bigint <-> python long ]

Brad Roberts braddr at puremagic.com
Sun Sep 9 12:55:19 PDT 2012


On 9/9/2012 1:15 AM, Johannes Pfau wrote:
> Am Sat, 08 Sep 2012 16:25:49 +0100
> schrieb Russel Winder <russel at winder.org.uk>:
> 
>> On Sat, 2012-09-08 at 07:20 -0700, Ellery Newcomer wrote:
>> […]
>>> Okay, here:
>>> https://bitbucket.org/ariovistus/deimos-elfutils/overview
>>>
>>> I have some code with a working makefile and a nonworking
>>> SConstruct file.
>>>
>>> I believe the issue is the header files have pragma(lib, X) in
>>> them, and a single call to dmd links the appropriate lib in, but
>>> scons' link step loses that information.
>>>
>>> Do you have any intention of supporting pragma(lib) in scons?
>>
>> If that is valid Dv2 and SCons doesn't deal with it then the SCons D
>> tools are broken and need fixing.
>>
>> Is there a tiny project replicating this that I can turn into a
>> unit/system test. The red so caused will necessitate action :-)
>>
> 
> Please note that pragma(lib) is an evil feature. For example it will
> never work in gdc.
> 

It's not impossible and never is rather defeatist.  Using the frontend as is and grabing the json output, part of which
includes the pragmas, would be easy.  Then invoking gdc with the appropriate options to get the library linked in.  rdmd
is a good example of this sort of process.




More information about the Digitalmars-d-learn mailing list