[compiler-rt] Provide better llvm-lit failure when llvm-config fails.
authorMitch Phillips <mitchphillips@outlook.com>
Tue, 26 Feb 2019 18:41:54 +0000 (18:41 +0000)
committerMitch Phillips <mitchphillips@outlook.com>
Tue, 26 Feb 2019 18:41:54 +0000 (18:41 +0000)
commit83899d1f39a3c29da18c7b0b4116ea17019d3f4a
treee08edd83bc1dab84dd7ca49305789de4c0f1ae00
parent443e00a51bb918dcc2a4369c65808fe02dd43e1c
[compiler-rt] Provide better llvm-lit failure when llvm-config fails.

Summary:
The current error message can cause confusion if llvm-config can't be
executed for reasons other than "not found". In my example, cross
compiling generated an llvm-config binary for aarch64 which couldn't be
executed natively. Instead of telling me that the error was with the
file architecture, it reports the file as not being present.

Reviewers: pcc

Subscribers: dberris, javed.absar, kristof.beyls, jdoerfert, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

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

llvm-svn: 354907
compiler-rt/test/lit.common.cfg