From: Erik van der Kouwe Date: Wed, 6 Aug 2014 13:18:41 +0000 (+0200) Subject: build.llvm fix to allow pass arguments X-Git-Tag: v3.3.0~38 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=refs%2Fchanges%2F93%2F2793%2F2;p=minix.git build.llvm fix to allow pass arguments This allows pass arguments to be specified (written by Cristiano) --- diff --git a/minix/llvm/build.llvm b/minix/llvm/build.llvm index 641af4dfe..202b59abc 100755 --- a/minix/llvm/build.llvm +++ b/minix/llvm/build.llvm @@ -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