mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[lit/Win] Check if a path was found before attempting to use it.
Summary: This appears to break some bots, when getToolsPath fails to find some or all of the tools (for example, an incomplete GnuWin32 installation). Reviewers: zturner, modocache Subscribers: sanjoy, llvm-commits Differential Revision: https://reviews.llvm.org/D38115 llvm-svn: 313854
This commit is contained in:
parent
0284aa24eb
commit
af102b9524
@ -27,7 +27,8 @@ class LLVMConfig(object):
|
||||
path = self.lit_config.getToolsPath(config.lit_tools_dir,
|
||||
config.environment['PATH'],
|
||||
['cmp.exe', 'grep.exe', 'sed.exe'])
|
||||
self.with_environment('PATH', path, append_path=True)
|
||||
if path is not None:
|
||||
self.with_environment('PATH', path, append_path=True)
|
||||
self.use_lit_shell = True
|
||||
|
||||
# Choose between lit's internal shell pipeline runner and a real shell. If
|
||||
|
Loading…
x
Reference in New Issue
Block a user