configure: Support msan as toolchain
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 6 Mar 2016 21:48:20 +0000 (22:48 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 7 Mar 2016 15:59:00 +0000 (16:59 +0100)
configure

index d8b8c07..f0c4f0a 100755 (executable)
--- a/configure
+++ b/configure
@@ -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