Commit 0fbb62a8 authored by Luca Barbato's avatar Luca Barbato

build: support asan and tsan toolchain shortcuts

parent 7e68c91e
......@@ -2048,6 +2048,16 @@ ranlib="${cross_prefix}${ranlib}"
sysinclude_default="${sysroot}/usr/include"
case "$toolchain" in
clang-asan)
cc_default="clang"
add_cflags -faddress-sanitizer
add_ldflags -faddress-sanitizer
;;
clang-tsan)
cc_default="clang"
add_cflags -fthread-sanitizer
add_ldflags -fthread-sanitizer
;;
msvc)
cc_default="c99wrap cl"
ld_default="c99wrap link"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment