[lit] Fix running lit tests in unconfigured source dir
authorMichal Gorny <mgorny@gentoo.org>
Sun, 1 Oct 2017 07:13:25 +0000 (07:13 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Sun, 1 Oct 2017 07:13:25 +0000 (07:13 +0000)
commitd6a4c79b149539eec9a5ed9040307889a83b7875
treec379d588e62c266b19d33f3e352892824a9de1c8
parentd26dae0d34cf13daab871fcffa513c6dd96a15bb
[lit] Fix running lit tests in unconfigured source dir

Fix llvm_tools_dir attribute access not to fail when the variable is not
present. This directory is not really necessary to run lit tests,
and the code already accounts for it being None.

The reference was added in r313407, and it breaks the stand-alone lit
package in Gentoo.

Differential Revision: https://reviews.llvm.org/D38442

llvm-svn: 314620
llvm/utils/lit/tests/lit.cfg