[PATCH] D40217: [LIT] Fix testing out-of-tree Clang builds

Michał Górny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 18 14:50:32 PST 2017


mgorny added a comment.

Or even more abstract (if we assume we don't have to check for presence of `llvm_tools_dir`):

  path_vars = ['clang_tools_dir', 'llvm_tools_dir']
  paths = [getattr(self.config, k) for k in path_vars if hasattr(self.config, k)]

(untested)


https://reviews.llvm.org/D40217





More information about the cfe-commits mailing list