aboutsummaryrefslogtreecommitdiff
path: root/test/lit.cfg
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-08-30 14:49:00 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-08-30 14:49:00 +0000
commit06b7f585229f9a4828ae2ae3b3764094b92cee5d (patch)
tree571170115452c734562d726ff571fb781831bd7e /test/lit.cfg
parent033927408e7a37815402d8748dd424be437c00d0 (diff)
Test: Fix LLVMC tests on CMake.
The CMake build didn't define TEST_COMPILE_CXX_CMD. The tests assumed gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112480 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index 28f336ba20..f15777c999 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -49,6 +49,14 @@ if llvm_obj_root is not None:
if 'HOME' in os.environ:
config.environment['HOME'] = os.environ['HOME']
+# Propogate 'INCLUDE' through the environment.
+if 'INCLUDE' in os.environ:
+ config.environment['INCLUDE'] = os.environ['INCLUDE']
+
+# Propogate 'LIB' through the environment.
+if 'LIB' in os.environ:
+ config.environment['LIB'] = os.environ['LIB']
+
# Propogate LLVM_SRC_ROOT into the environment.
config.environment['LLVM_SRC_ROOT'] = getattr(config, 'llvm_src_root', '')