llvm.org GIT mirror llvm / 07f3fba
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313854 91177308-0d34-0410-b5e6-96231b3b80d8 David L. Jones 2 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2626 path = self.lit_config.getToolsPath(config.lit_tools_dir,
2727 config.environment['PATH'],
2828 ['cmp.exe', 'grep.exe', 'sed.exe'])
29 self.with_environment('PATH', path, append_path=True)
29 if path is not None:
30 self.with_environment('PATH', path, append_path=True)
3031 self.use_lit_shell = True
3132
3233 # Choose between lit's internal shell pipeline runner and a real shell. If