diff options
author | Zachary Turner <zturner@google.com> | 2017-11-16 18:26:20 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-11-16 18:26:20 +0000 |
commit | 5e420717a1c4d9b25c645362f92dc02ccf2c5977 (patch) | |
tree | e921704288f4fd9a5ce7904c3083bdd20fdce4c9 /llvm/utils/lit | |
parent | 2139ed638b7c14eff603ba6b3a67753fe5020063 (diff) | |
download | bcm5719-llvm-5e420717a1c4d9b25c645362f92dc02ccf2c5977.tar.gz bcm5719-llvm-5e420717a1c4d9b25c645362f92dc02ccf2c5977.zip |
Resubmit "Refactor debuginfo-tests"
This was reverted due to some failures on specific darwin buildbots,
the issue being that the new lit configuration was not setting the
SDKROOT environment variable. We've tested a fix locally and confirmed
that it works, so this patch resubmits everything with the fix
applied.
llvm-svn: 318435
Diffstat (limited to 'llvm/utils/lit')
-rw-r--r-- | llvm/utils/lit/lit/llvm/config.py | 9 |
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( |