[PATCH] D38442: [lit] Fix running lit tests in unconfigured source dir
Michał Górny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 1 00:15:14 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL314620: [lit] Fix running lit tests in unconfigured source dir (authored by mgorny).
Changed prior to commit:
https://reviews.llvm.org/D38442?vs=117263&id=117273#toc
Repository:
rL LLVM
https://reviews.llvm.org/D38442
Files:
llvm/trunk/utils/lit/tests/lit.cfg
Index: llvm/trunk/utils/lit/tests/lit.cfg
===================================================================
--- llvm/trunk/utils/lit/tests/lit.cfg
+++ llvm/trunk/utils/lit/tests/lit.cfg
@@ -65,6 +65,6 @@
config.available_features.add('windows')
# Add llvm tools directory if this config is being loaded indirectly
-if config.llvm_tools_dir is not None:
+if getattr(config, 'llvm_tools_dir', None) is not None:
path = os.path.pathsep.join((config.llvm_tools_dir, config.environment['PATH']))
config.environment['PATH'] = path
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38442.117273.patch
Type: text/x-patch
Size: 545 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171001/76460d8a/attachment.bin>
More information about the llvm-commits
mailing list