summaryrefslogtreecommitdiffstats
path: root/llvm/utils/llvm-build
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-12-20 10:35:18 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-12-20 10:35:18 +0000
commita1d528baa5a0eca4541e346a59ea83d6e84a6dd6 (patch)
treeb40a3504d899cf8665f4c55ec748b2d90fc234df /llvm/utils/llvm-build
parentd088b3b21925f048fc3d07c9e1b68da651db1100 (diff)
downloadbcm5719-llvm-a1d528baa5a0eca4541e346a59ea83d6e84a6dd6.tar.gz
bcm5719-llvm-a1d528baa5a0eca4541e346a59ea83d6e84a6dd6.zip
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 llvm-svn: 170682
Diffstat (limited to 'llvm/utils/llvm-build')
-rw-r--r--llvm/utils/llvm-build/llvmbuild/main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/utils/llvm-build/llvmbuild/main.py b/llvm/utils/llvm-build/llvmbuild/main.py
index 27d23d0855d..32d5395a509 100644
--- a/llvm/utils/llvm-build/llvmbuild/main.py
+++ b/llvm/utils/llvm-build/llvmbuild/main.py
@@ -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())
OpenPOWER on IntegriCloud