scons: don't maintain files in sorted order
authorNathan Binkert <nate@binkert.org>
Thu, 15 Apr 2010 23:25:14 +0000 (16:25 -0700)
committerNathan Binkert <nate@binkert.org>
Thu, 15 Apr 2010 23:25:14 +0000 (16:25 -0700)
This causes builds to happen in sorted order rather than in
declaration order. This gets annoying when you make a global change
and then you notice that the files that are being compiled are jumping
around the directory hierarchy.

src/SConscript

index d02d2a6e7cda502c3e81ae5a5a6fb7cdb623eed6..51616701b36234ad131209c321b55cbebadd8b78 100644 (file)
@@ -88,7 +88,7 @@ class SourceFile(object):
 
         for base in type(self).__mro__:
             if issubclass(base, SourceFile):
-                bisect.insort_right(base.all, self)       
+                base.all.append(self)
 
     def __lt__(self, other): return self.filename < other.filename
     def __le__(self, other): return self.filename <= other.filename