WAF: make list of modules (all_modules) a tuple instead of list, because it is hashable, and this way newer WAF is able to notice changes in it and automatically trigger a reconfiguration.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Tue, 24 Jul 2007 16:13:31 +0100
changeset 969 3c3ce40492a6
parent 968 70d02500c9d5
child 970 e62217592fde
WAF: make list of modules (all_modules) a tuple instead of list, because it is hashable, and this way newer WAF is able to notice changes in it and automatically trigger a reconfiguration.
src/wscript
--- a/src/wscript	Mon Jul 23 15:53:54 2007 +0200
+++ b/src/wscript	Tue Jul 24 16:13:31 2007 +0100
@@ -9,7 +9,7 @@
 import Params
 
 
-all_modules = [
+all_modules = (
     'core',
     'common',
     'simulator',
@@ -18,7 +18,7 @@
     'devices/p2p',
     'applications',
     'mobility',
-    ]
+    )
 
 
 def set_options(opt):
@@ -52,7 +52,7 @@
     Object.register('ns3header', Ns3Header)
     Action.Action('ns3header', func=_ns3_headers_inst, color='BLUE')
     
-    bld.add_subdirs(all_modules)
+    bld.add_subdirs(list(all_modules))
 
 class Ns3Header(Object.genobj):
     """A set of NS-3 header files"""