summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-11-10 20:57:57 +0000
committerZachary Turner <zturner@google.com>2017-11-10 20:57:57 +0000
commit0f2ce11df7288c4cdae0db2f7211ec41446e6c22 (patch)
treedcb05a278762dcb31288cbbca159cbfdf9c6b44b /llvm/utils/lit
parentf59d0715b1581d627eab52e03f81dcb6c4f9c008 (diff)
downloadbcm5719-llvm-0f2ce11df7288c4cdae0db2f7211ec41446e6c22.tar.gz
bcm5719-llvm-0f2ce11df7288c4cdae0db2f7211ec41446e6c22.zip
[debuginfo-tests] Make debuginfo-tests work in a standard configuration.
Previously, debuginfo-tests was expected to be checked out into clang/test and then the tests would automatically run as part of check-clang. This is not a standard workflow for handling external projects, and it brings with it some serious drawbacks such as the inability to depend on things other than clang, which we will need going forward. The goal of this patch is to migrate towards a more standard workflow. To ease the transition for build bot maintainers, this patch tries not to break the existing workflow, but instead simply deprecate it to give maintainers a chance to update the build infrastructure. Differential Revision: https://reviews.llvm.org/D39605 llvm-svn: 317925
Diffstat (limited to 'llvm/utils/lit')
-rw-r--r--llvm/utils/lit/lit/llvm/config.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py
index 798f08af1be..d3d8d2288b7 100644
--- a/llvm/utils/lit/lit/llvm/config.py
+++ b/llvm/utils/lit/lit/llvm/config.py
@@ -27,8 +27,9 @@ class LLVMConfig(object):
# For tests that require Windows to run.
features.add('system-windows')
+ lit_tools_dir = getattr(config, 'lit_tools_dir', None)
# Seek sane tools in directories and set to $PATH.
- path = self.lit_config.getToolsPath(config.lit_tools_dir,
+ path = self.lit_config.getToolsPath(lit_tools_dir,
config.environment['PATH'],
['cmp.exe', 'grep.exe', 'sed.exe'])
if path is not None:
@@ -413,8 +414,10 @@ class LLVMConfig(object):
self.config.substitutions.append(
('%target_itanium_abi_host_triple', ''))
- self.config.substitutions.append(
- ('%src_include_dir', self.config.clang_src_dir + '/include'))
+ clang_src_dir = getattr(self.config, 'clang_src_dir', None)
+ if clang_src_dir:
+ self.config.substitutions.append(
+ ('%src_include_dir', os.path.join(clang_src_dir, 'include')))
# FIXME: Find nicer way to prohibit this.
self.config.substitutions.append(
OpenPOWER on IntegriCloud