OSDN Git Service

tests: Tweak lit.cfg to fix breakage with out-of-dir lookup.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 23 Jun 2010 18:06:16 +0000 (18:06 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 23 Jun 2010 18:06:16 +0000 (18:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106638 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg

index 65e0dc7..5e7e0e4 100644 (file)
@@ -49,7 +49,7 @@ if llvm_obj_root is not None:
 config.environment['HOME'] = os.environ['HOME']
 
 # Propogate LLVM_SRC_ROOT into the environment.
-config.environment['LLVM_SRC_ROOT'] = config.llvm_src_root
+config.environment['LLVM_SRC_ROOT'] = getattr(config, 'llvm_src_root', '')
 
 # Propogate PYTHON_EXEUTABLE into the environment
 config.environment['PYTHON_EXECUTABLE'] = getattr(config, 'python_executable',