aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sparsei
diff options
authorCody P Schafer <cody@linux.vnet.ibm.com>2014-04-15 12:51:29 -0700
committerChristopher Li <sparse@chrisli.org>2014-04-15 15:30:28 -0700
commitfe5eda126b9f5315e0049fd174d2326fecea6249 (patch)
tree0422f8090d08dd1e1d2d31fc4e46a3c8ab45a42f /sparsei
parent2ea26979e9134849c17a45aedcc80e20f27323b9 (diff)
downloadsparse-dev-fe5eda126b9f5315e0049fd174d2326fecea6249.tar.gz
sparse{i,c}: use LLVM_CONFIG to find llc and lli
Some systems have multiple llvm versions installed, and have prefixed executables ("<exec>-<version>"). While we could require the user to specify a variable for each executable (LLC, LLI), using llvm-config --bindir to locate them and allowing them to override using LLVM_CONFIG makes much less work. Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com> Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'sparsei')
-rwxr-xr-xsparsei2
1 files changed, 1 insertions, 1 deletions
diff --git a/sparsei b/sparsei
index 46321542..3431a9f0 100755
--- a/sparsei
+++ b/sparsei
@@ -3,7 +3,7 @@
set +e
DIRNAME=`dirname $0`
-LLI=`llvm-config --bindir`/lli
+LLI=`"${LLVM_CONFIG:-llvm-config}" --bindir`/lli
if [ $# -eq 0 ]; then
echo "`basename $0`: no input files"