build.llvm: including configure.llvm.inc must be optional

This commit is contained in:
Koustubha Bhat 2014-07-11 12:22:11 +02:00 committed by Lionel Sambuc
parent bf1ab51c95
commit 98141c6587

View file

@ -76,17 +76,17 @@ 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 exit." echo "The LLVM pass file ${llvmpass}.so doesn't exist."
exit_flag=1 exit_flag=1
fi fi
LLVMPASS_PATHS+=" -load=${llvmpass_path} -${llvmpass}" LLVMPASS_PATHS+=" -load=${llvmpass_path} -${llvmpass}"
LLVMPASS+=" ${llvmpass}"
done done
if [ ${exit_flag} == 1 ]; then if [ ${exit_flag} == 1 ]; then
echo "Searched in:" echo "Searched in the following location(s):"
echo " ${INSTALL_DIR}" echo " ${INSTALL_DIR}"
echo " and" echo " ${MINIX_LLVM_BIN_DIR}"
echo " ${MINIX_LLVM_BIN_DIR}."
exit 1 exit 1
fi fi
@ -99,7 +99,7 @@ check_current_dir
# set up the bridge to llvm-apps repository and initialize # set up the bridge to llvm-apps repository and initialize
. ${MINIX_LLVM_DIR}/minix.inc . ${MINIX_LLVM_DIR}/minix.inc
. ${ROOT}/apps/scripts/include/configure.llvm.inc [ ! -f ${ROOT}/apps/scripts/include/configure.llvm.inc ] || . ${ROOT}/apps/scripts/include/configure.llvm.inc
# Arguments check # Arguments check
check_args "$@" check_args "$@"