llvm: Preserve default OPTFLAGS when adding instrumentation.
This commit is contained in:
parent
5119c2fe3a
commit
0810704c3d
1 changed files with 3 additions and 2 deletions
|
@ -16,7 +16,6 @@ MINIX_LLVM_DIR=
|
||||||
LLVMPASS=
|
LLVMPASS=
|
||||||
LLVMARGS=
|
LLVMARGS=
|
||||||
LLVMPASS_PATHS=
|
LLVMPASS_PATHS=
|
||||||
OPTFLAGS=" "
|
|
||||||
TARGET_MODULES=
|
TARGET_MODULES=
|
||||||
MINIX_MODS=
|
MINIX_MODS=
|
||||||
|
|
||||||
|
@ -113,9 +112,11 @@ if [ "${GENERATE_MAP}" != "" ] && [[ ${GENERATE_MAP} =~ [yY][eE][sS] ]]; then
|
||||||
generate_modules_map
|
generate_modules_map
|
||||||
fi
|
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 we are really instrumenting with some pass...
|
||||||
if [ "${LLVMPASS_PATHS}" != "" ]; then
|
if [ "${LLVMPASS_PATHS}" != "" ]; then
|
||||||
OPTFLAGS=" -disable-opt ${LLVMPASS_PATHS} ${LLVMARGS}"
|
OPTFLAGS=" ${OPTFLAGS} ${LLVMPASS_PATHS} ${LLVMARGS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TARGET_MODULES=`echo $C | sed -e "s/,/ /g"`
|
TARGET_MODULES=`echo $C | sed -e "s/,/ /g"`
|
||||||
|
|
Loading…
Reference in a new issue