Commit 19f251a2 authored by Luca Barbato's avatar Luca Barbato

clang: use -fsantize=address and -fsanitize=thread

The previous syntax is deprecated.
parent 6e3c13a5
......@@ -2158,13 +2158,13 @@ sysinclude_default="${sysroot}/usr/include"
case "$toolchain" in
clang-asan)
cc_default="clang"
add_cflags -faddress-sanitizer
add_ldflags -faddress-sanitizer
add_cflags -fsanitize=address
add_ldflags -fsanitize=address
;;
clang-tsan)
cc_default="clang"
add_cflags -fthread-sanitizer
add_ldflags -fthread-sanitizer
add_cflags -fsanitize=thread -pie
add_ldflags -fsanitize=thread -pie
;;
msvc)
cc_default="c99wrap cl"
......
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