Browse Source

Fix the ME path on the builder

master
Sameer Rahmani 2 months ago
parent
commit
b16006541a
  1. 8
      builder

8
builder

@ -59,8 +59,9 @@ export LDFLAGS="-fuse-ld=lld" @@ -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 @@ -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

Loading…
Cancel
Save