[llvm-commits] [llvm] r170682 - /llvm/trunk/utils/llvm-build/llvmbuild/main.py

NAKAMURA Takumi geek4civic at gmail.com
Thu Dec 20 02:35:19 PST 2012


Author: chapuni
Date: Thu Dec 20 04:35:18 2012
New Revision: 170682

URL: http://llvm.org/viewvc/llvm-project?rev=170682&view=rev
Log:
llvmbuild/main.py: Let LibraryDependencies.inc deterministic.

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

Modified:
    llvm/trunk/utils/llvm-build/llvmbuild/main.py

Modified: llvm/trunk/utils/llvm-build/llvmbuild/main.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm-build/llvmbuild/main.py?rev=170682&r1=170681&r2=170682&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-build/llvmbuild/main.py (original)
+++ llvm/trunk/utils/llvm-build/llvmbuild/main.py Thu Dec 20 04:35:18 2012
@@ -182,7 +182,9 @@
         # 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())
 





More information about the llvm-commits mailing list