summaryrefslogtreecommitdiff
path: root/libclc/check_external_calls.sh
diff options
context:
space:
mode:
Diffstat (limited to 'libclc/check_external_calls.sh')
-rwxr-xr-xlibclc/check_external_calls.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/libclc/check_external_calls.sh b/libclc/check_external_calls.sh
index 80b595c9cec3..4de31a220d07 100755
--- a/libclc/check_external_calls.sh
+++ b/libclc/check_external_calls.sh
@@ -1,19 +1,13 @@
#!/bin/sh
FILE=$1
+BIN_DIR=$2
if [ ! -f $FILE ]; then
echo "ERROR: Not a file: $FILE"
exit 3
fi
ret=0
-if [ "x$LLVM_CONFIG" = "x" ]; then
- LLVM_CONFIG=llvm-config
- echo 'WARNING: $LLVM_CONFIG not set, falling back to $PATH llvm-config'
- ret=2
-fi
-
-BIN_DIR=$($LLVM_CONFIG --bindir)
DIS="$BIN_DIR/llvm-dis"
if [ ! -x $DIS ]; then
echo "ERROR: Disassembler '$DIS' is not executable"