LLVMPASS=
LLVMARGS=
LLVMPASS_PATHS=
-OPTFLAGS=" "
TARGET_MODULES=
MINIX_MODS=
generate_modules_map
fi
+: ${OPTFLAGS="-disable-opt -disable-internalize -disable-inlining -load ${MINIX_LLVM_DIR}/bin/weak-alias-module-override.so -weak-alias-module-override"}
+
# If we are really instrumenting with some pass...
if [ "${LLVMPASS_PATHS}" != "" ]; then
- OPTFLAGS=" -disable-opt ${LLVMPASS_PATHS} ${LLVMARGS}"
+ OPTFLAGS=" ${OPTFLAGS} ${LLVMPASS_PATHS} ${LLVMARGS}"
fi
TARGET_MODULES=`echo $C | sed -e "s/,/ /g"`