llvmbuild/main.py: Let LibraryDependencies.inc deterministic.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 20 Dec 2012 10:35:18 +0000 (10:35 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 20 Dec 2012 10:35:18 +0000 (10:35 +0000)
FYI, llvm and clang can be built deterministically between stage 2 and stage3, among iterative clean rebuilds, with GNU ar;

configure --disable-timestamps
make AR.Flags=crsD RANLIB=echo

llvm-svn: 170682

llvm/utils/llvm-build/llvmbuild/main.py

index 27d23d0..32d5395 100644 (file)
@@ -182,7 +182,9 @@ class LLVMProjectInfo(object):
         # out easily. If we don't, we should special case the check.
 
         self.ordered_component_infos = []
-        components_to_visit = set(self.component_infos)
+        components_to_visit = sorted(
+            set(self.component_infos),
+            key = lambda c: c.name)
         while components_to_visit:
             visit_component_info(iter(components_to_visit).next(), [], set())