[Scons-users] AppendUnique doesn't append unique

Rob Deckers Rob.Deckers at vanderlande.com
Wed Sep 18 05:18:38 EDT 2013


Hi,

We encountered in our Scons build environment that the build randomly failed, especially the unittests.

A further investigation showed VERY big (to big) command lines because of the link dependencies.
First we slimmed down the link dependancies list, but also we saw doubles in the list, even though we used

[code]
# Add additional library paths to LIBPATH variable so the linker can find the libs
env.AppendUnique(
LIBPATH = [add_libpath]
)
[/code]

We replaced this with:
[code]
# Add additional library paths to LIBPATH variable so the linker can find the libs, and skip duplicates
if not 'LIBPATH' in env:
env['LIBPATH'] = []
for dir in add_libpath:
if dir not in env['LIBPATH']:
env['LIBPATH'].append(dir)
[/code]

And this works.

Have others also encountered a not working env.AppendUnique ?
I didn't find anything like it with googling.

Kind Regards,
Rob Deckers

-----Original Message-----
From: scons-users-bounces at scons.org [mailto:scons-users-bounces at scons.org] On Behalf Of Dirk Bächle
Sent: vrijdag 13 september 2013 20:05
To: scons-users at scons.org
Subject: Re: [Scons-users] strange behavior with path as an array

On 12.09.2013 22:48, robert zeigler wrote:

> It is issue 2917, but currently marked as invalid. I can reopen if

> you'd like.

>


I reopened it right now, thanks again for reporting this.

Regards,

Dirk

_______________________________________________
Scons-users mailing list
Scons-users at scons.org
http://four.pairlist.net/mailman/listinfo/scons-users
** Disclaimer **

This e-mail, including any attachments, may include proprietary and confidential information of Vanderlande Industries and may only be read by the person or those persons to whom it is addressed.
This document is forwarded to you in such a form (e-mail) that Vanderlande Industries cannot guarantee the completeness and/or correctness of its contents and information.
If you have received this e-mail message in error, please notify us immediately. Please also delete this document from your computer.
This document may not be reproduced, copied, distributed, published, modified, or furnished to third parties, without the prior written consent of Vanderlande Industries.



More information about the Scons-users mailing list