From b16006541a46866641a20e00d625a4a57eea5ef2 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Sun, 19 Jun 2022 21:31:25 +0100 Subject: [PATCH] Fix the ME path on the builder --- builder | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builder b/builder index 112c5a0..522fc67 100755 --- a/builder +++ b/builder @@ -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,8 +166,7 @@ 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 "$@" + "$BUILD_DIR"/bin/leavitt "$@" } function memcheck-leavitt() { ## Runs `valgrind` to check `leavittc` birany