Merge commit 'c11a8586264520e6afcddc52156f4a1fd2fb07b2'

* commit 'c11a8586264520e6afcddc52156f4a1fd2fb07b2':
  configure: Support msan as toolchain

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
Derek Buitenhuis 2016-04-13 17:28:38 +01:00
commit 6e6b1fe7f7
1 changed files with 5 additions and 0 deletions

5
configure vendored
View File

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