diff options
| author | Cody P Schafer <cody@linux.vnet.ibm.com> | 2014-04-15 12:51:29 -0700 |
|---|---|---|
| committer | Christopher Li <sparse@chrisli.org> | 2014-04-15 15:30:28 -0700 |
| commit | fe5eda126b9f5315e0049fd174d2326fecea6249 (patch) | |
| tree | 0422f8090d08dd1e1d2d31fc4e46a3c8ab45a42f /sparsei | |
| parent | 2ea26979e9134849c17a45aedcc80e20f27323b9 (diff) | |
| download | sparse-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-x | sparsei | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |
