Fix the ME path on the builder

This commit is contained in:
Sameer Rahmani 2022-06-19 21:31:25 +01:00
parent 55c1a7f1c0
commit b16006541a
1 changed files with 4 additions and 4 deletions

View File

@ -59,8 +59,9 @@ export LDFLAGS="-fuse-ld=lld"
# The `builder` script is supposed to be run from the
# root of the source tree
ME=$(cd "$(dirname "$0")/." >/dev/null 2>&1 ; pwd -P)ME=$(cd "$(dirname "$0")/." >/dev/null 2>&1 ; pwd -P)
ROOT_DIR=$ME
ME=$(cd "$(dirname "$0")/." >/dev/null 2>&1 ; pwd -P)
ROOT_DIR=$ME/
BUILD_DIR=$ROOT_DIR/build
CMAKEARGS_DEBUG=("-DCMAKE_BUILD_TYPE=Debug")
@ -165,7 +166,6 @@ function clean() { ## Cleans up the source dir and removes the build
}
function run() { ## Runs `leavittc` and passes all the given aruguments to it
LD_PRELOAD=$(clang -print-file-name=libclang_rt.asan-x86_64.so) \
"$BUILD_DIR"/bin/leavitt "$@"
}