configure: Support msan as toolchain

This commit is contained in:
Luca Barbato 2016-03-06 22:48:20 +01:00
parent 328e9a15c5
commit c11a858626
1 changed files with 5 additions and 0 deletions

5
configure vendored
View File

@ -2701,6 +2701,11 @@ case "$toolchain" in
add_cflags -fsanitize=address
add_ldflags -fsanitize=address
;;
*-msan)
cc_default="${toolchain%-msan}"
add_cflags -fsanitize=memory -fsanitize-memory-track-origins
add_ldflags -fsanitize=memory
;;
*-tsan)
cc_default="${toolchain%-tsan}"
add_cflags -fsanitize=thread -pie