From ca4db76bb13e8f877230e23d4a8f35e4295be24a Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 27 Jun 2017 15:44:58 -0700 Subject: [PATCH] Override LINK to call clang++ w/ -fsanitize=address in test script Signed-off-by: Philip Turnbull --- script/test | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/test b/script/test index 27aca802..cec9845d 100755 --- a/script/test +++ b/script/test @@ -44,6 +44,10 @@ export BUILDTYPE=Test cmd="out/${BUILDTYPE}/${target}" run_scan_build= +if [ "$(uname -s)" == "Darwin" ]; then + export LINK="clang++ -fsanitize=address" +fi + while getopts "bdf:s:gGhpvS" option; do case ${option} in h)