Fix the ME path on the builder
This commit is contained in:
parent
55c1a7f1c0
commit
b16006541a
8
builder
8
builder
|
@ -59,8 +59,9 @@ export LDFLAGS="-fuse-ld=lld"
|
||||||
|
|
||||||
# The `builder` script is supposed to be run from the
|
# The `builder` script is supposed to be run from the
|
||||||
# root of the source tree
|
# 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)
|
ME=$(cd "$(dirname "$0")/." >/dev/null 2>&1 ; pwd -P)
|
||||||
ROOT_DIR=$ME
|
|
||||||
|
ROOT_DIR=$ME/
|
||||||
BUILD_DIR=$ROOT_DIR/build
|
BUILD_DIR=$ROOT_DIR/build
|
||||||
|
|
||||||
CMAKEARGS_DEBUG=("-DCMAKE_BUILD_TYPE=Debug")
|
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
|
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
|
function memcheck-leavitt() { ## Runs `valgrind` to check `leavittc` birany
|
||||||
|
|
Loading…
Reference in New Issue