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