aboutsummaryrefslogtreecommitdiffstats
path: root/utils/llvm-build
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-11-03 19:45:52 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-11-03 19:45:52 +0000
commite10233b668695f810688a8bc46c9399cae705484 (patch)
tree60dade2d533dd76fe51c67f195d9bbd17c77b4f2 /utils/llvm-build
parente1f38f2ce1221176cc4934a73283cb151e1f940d (diff)
downloadexternal_llvm-e10233b668695f810688a8bc46c9399cae705484.zip
external_llvm-e10233b668695f810688a8bc46c9399cae705484.tar.gz
external_llvm-e10233b668695f810688a8bc46c9399cae705484.tar.bz2
llvm-build: Avoid followlinks keyword argument to os.walk.
- llvm-build should now be Python2.4 compatible as best I know. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143641 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/llvm-build')
-rw-r--r--utils/llvm-build/llvmbuild/main.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/utils/llvm-build/llvmbuild/main.py b/utils/llvm-build/llvmbuild/main.py
index 9baf2c0..f52b2b1 100644
--- a/utils/llvm-build/llvmbuild/main.py
+++ b/utils/llvm-build/llvmbuild/main.py
@@ -14,8 +14,13 @@ class LLVMProjectInfo(object):
# directories we have already traversed.
# First, discover all the LLVMBuild.txt files.
- for dirpath,dirnames,filenames in os.walk(llvmbuild_source_root,
- followlinks = True):
+ #
+ # FIXME: We would like to use followlinks=True here, but that isn't
+ # compatible with Python 2.4. Instead, we will either have to special
+ # case projects we would expect to possibly be linked to, or implement
+ # our own walk that can follow links. For now, it doesn't matter since
+ # we haven't picked up the LLVMBuild system in any other LLVM projects.
+ for dirpath,dirnames,filenames in os.walk(llvmbuild_source_root):
# If there is no LLVMBuild.txt file in a directory, we don't recurse
# past it. This is a simple way to prune our search, although it
# makes it easy for users to add LLVMBuild.txt files in places they