build.llvm fix to allow pass arguments
This allows pass arguments to be specified (written by Cristiano)
This commit is contained in:
parent
d90bee9749
commit
52c6ad72ab
1 changed files with 5 additions and 4 deletions
|
@ -76,11 +76,12 @@ function check_args()
|
||||||
elif [ -f "${MINIX_LLVM_BIN_DIR}/${llvmpass}.so" ]; then
|
elif [ -f "${MINIX_LLVM_BIN_DIR}/${llvmpass}.so" ]; then
|
||||||
llvmpass_path="${MINIX_LLVM_BIN_DIR}/${llvmpass}.so"
|
llvmpass_path="${MINIX_LLVM_BIN_DIR}/${llvmpass}.so"
|
||||||
else
|
else
|
||||||
echo "The LLVM pass file ${llvmpass}.so doesn't exist."
|
llvmpass_path=""
|
||||||
exit_flag=1
|
|
||||||
fi
|
fi
|
||||||
LLVMPASS_PATHS+=" -load=${llvmpass_path} -${llvmpass}"
|
if [ "$llvmpass_path" != "" ]; then
|
||||||
LLVMPASS+=" ${llvmpass}"
|
LLVMPASS_PATHS+=" -load=${llvmpass_path}"
|
||||||
|
fi
|
||||||
|
LLVMPASS_PATHS+=" -${llvmpass}"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ ${exit_flag} == 1 ]; then
|
if [ ${exit_flag} == 1 ]; then
|
||||||
|
|
Loading…
Reference in a new issue