build.llvm fix to allow pass arguments

This allows pass arguments to be specified (written by Cristiano)
This commit is contained in:
Erik van der Kouwe
2014-08-29 12:56:23 -04:00
committed by Gerrit Code Review
parent d90bee9749
commit 52c6ad72ab
+5 -4
View File
@@ -76,11 +76,12 @@ function check_args()
elif [ -f "${MINIX_LLVM_BIN_DIR}/${llvmpass}.so" ]; then
llvmpass_path="${MINIX_LLVM_BIN_DIR}/${llvmpass}.so"
else
echo "The LLVM pass file ${llvmpass}.so doesn't exist."
exit_flag=1
llvmpass_path=""
fi
LLVMPASS_PATHS+=" -load=${llvmpass_path} -${llvmpass}"
LLVMPASS+=" ${llvmpass}"
if [ "$llvmpass_path" != "" ]; then
LLVMPASS_PATHS+=" -load=${llvmpass_path}"
fi
LLVMPASS_PATHS+=" -${llvmpass}"
done
if [ ${exit_flag} == 1 ]; then