qa.sh: Link with clang for Address Sanitizer

This commit is contained in:
Sebastian Pipping 2019-01-27 17:30:01 +01:00
parent 75fbe10f71
commit 6e29a8bbaf

View File

@ -44,6 +44,7 @@ main() {
# http://clang.llvm.org/docs/AddressSanitizer.html # http://clang.llvm.org/docs/AddressSanitizer.html
local CC="${CLANG_CC}" local CC="${CLANG_CC}"
local CXX="${CLANG_CXX}" local CXX="${CLANG_CXX}"
local LD="${CLANG_CXX}"
BASE_COMPILE_FLAGS+=" -g -fsanitize=address -fno-omit-frame-pointer" BASE_COMPILE_FLAGS+=" -g -fsanitize=address -fno-omit-frame-pointer"
BASE_LINK_FLAGS+=" -g -Wc,-fsanitize=address" # "-Wc," is for libtool BASE_LINK_FLAGS+=" -g -Wc,-fsanitize=address" # "-Wc," is for libtool
;; ;;