[Scons-users] Question about emitter
Endre Bak
ebak32 at gmail.com
Thu Feb 11 15:53:45 EST 2016
"and append your object files to the "targets" instead. ;)"
When I execute scons 2nd time, the generated .c file is already in place
and the executed linker command seems to be OK: "gcc -o prg obj/main.o
obj/Cfg.o". This case the "targets" is "prg" the "sources" are ["obj/main.o",
"obj/Cfg.o"], "obj/Cfg.o" is the appended source.
"Your SConstruct is a mix of SCons and calling os.system and mkdir and
glob."
Why is it a matter?
Why is the emitter executed at Builder construction time and why it is not
executed at Builder invokation?
On Thu, Feb 11, 2016 at 8:59 PM, Dirk Bächle <tshortik at gmx.de> wrote:
> Hi Endre,
>
> On 11.02.2016 20:25, Bill Deegan wrote:
>
>> Endre,
>>
>> You will probably want to read:
>> https://bitbucket.org/scons/scons/wiki/DynamicSourceGenerator
>>
>> As well as:
>> https://bitbucket.org/scons/scons/wiki/ToolsForFools
>> and
>> https://bitbucket.org/scons/scons/wiki/SconsProcessOverview
>>
>> Have you read either the Users's Guide or the Manpage?
>> Your SConstruct is a mix of SCons and calling os.system and mkdir and
>> glob.
>>
>>
> I second what Bill says. Please take a peek in the mentioned tutorials,
> overviews and recipes. After that, you may want to take a second look at
> your current SConstruct... and append your object files to the "targets"
> instead. ;)
>
> Best regards,
>
> Dirk
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160211/1d03c603/attachment-0001.html>
More information about the Scons-users
mailing list