[Scons-users] Scons none-deterministic behavior for incremental build

Mats Wichmann mats at wichmann.us
Wed Dec 5 06:08:21 EST 2018


On 12/5/18 2:50 AM, Hua Yanghao wrote:
> I finally nailed it down.

glad you got it cleaned up!

> 
> It is because the ordering of SConscript files processing, where in
> SConscript I allow users/modules to provide additional CFLAGS.
> I used a set() to eliminate duplicated SConscript, but in Python3
> set() does not have a stable run-time ordering.

I guess that's an implementation detail... cpython 3 doing something
different than 2.7. there has never been any promise: "A set object is
an unordered collection of distinct hashable objects."

> 
> The fix is very simple to convert the set() back to list and sort it out.

sounds good.


More information about the Scons-users mailing list