[Scons-users] Dependency cycles. 2.4.1 -> 2.5.1

William Blevins wblevins001 at gmail.com
Tue Jan 10 18:19:09 EST 2017


Glad you figured it out :)

Fixing lots of missing dependencies does give a minor performance penalty,
but that's the price we pay for correctness.

V/R,
William

On Jan 10, 2017 3:03 PM, "Pierre-Luc Boily" <pierreluc.boily at gmail.com>
wrote:

> I fixed my problem.  Problem was coming from my custom builder
> env.buildGenerateHeadersInLink(source =
> _get_header_source(idlGeneratedHeaders)).
>
> Basically, this custom builder was creating header files in LINK/include
> for
> each header files in src directory.  The way I was using the custom builder
> is I was giving him the whole list of header files to be created.  This was
> giving this super ugly output call http://pastebin.com/tz3vZZw9
>
> I also realized that this was creating useless dependencies.  Then, I
> decided to call my custom builder like this instead:
>
> for file in idlGeneratedHeaders:
>     #target create by emitter
>     env.buildGenerateHeadersInLink(target = None, file)
>
> This gives cleaner ouput :
> _generate_headers_in_link_action(["LINK\include\adacel\
> speech\ScenarioContext.h"],
> ["sr\speech\common_dds\ScenarioContext.h"])
> _generate_headers_in_link_action(["LINK\include\adacel\
> speech\ScenarioStatus.h"],
> ["sr\speech\common_dds\ScenarioStatus.h"])
> _generate_headers_in_link_action(["LINK\include\adacel\
> speech\TtsNotification.h"],
> ["sr\speech\common_dds\TtsNotification.h"])
>
> Then, everything compiled perfectly.
>
> Regarding time comparison with scons -j8
> Processor : Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
> Installed memory (RAM): 16.0 GB
> System Type: 64-bit Operating System, x64-based processor
>
> With SCons 2.4.1 : 717.392 s
> With SCons 2.5.1 : 740.326 s
>
> thx
>
>
>
>
>
>
> --
> View this message in context: http://scons.1086193.n5.
> nabble.com/Dependency-cycles-2-4-1-2-5-1-tp40926p40945.html
> Sent from the Users mailing list archive at Nabble.com.
> _______________________________________________
> 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/20170110/36001c81/attachment.html>


More information about the Scons-users mailing list