From 38b7eede1e7ebf0a0699d135611828c6d62ede6f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 24 Nov 2013 14:22:45 +0100 Subject: build: store dependencies as lists In Python sets are unordered, so iterating them after converting to a list always leads to different results. The code iterated on them to collect all the flags to pass to the compiler, and since the order of the flags changed, waf would rebuild all of the C files. Seems like in Python 2 this worked as expected by pure chance. This commit stores the sets as lists, and converts them to sets when the set operations are needed. Fixes #363 --- wscript | 3 +++ 1 file changed, 3 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index dd46d0c513..dabf630875 100644 --- a/wscript +++ b/wscript @@ -755,5 +755,8 @@ def configure(ctx): if not ctx.dependency_satisfied('build-date'): ctx.env.CFLAGS += ['-DNO_BUILD_TIMESTAMPS'] + ctx.store_dependencies_lists() + def build(ctx): + ctx.unpack_dependencies_lists() ctx.load('wscript_build') -- cgit v1.2.3