From b719221996933d66c1587c839a35a1e14d5db4b4 Mon Sep 17 00:00:00 2001 From: Mohamed Amin JABRI Date: Mon, 25 Sep 2017 21:22:52 +0900 Subject: [PATCH] Reenable TSan on macOS as newer Xcode toolchains support it. --- .gitignore | 3 +++ cmake/FindTSan.cmake | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c4a70a6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# out-of-source build top-level folders. +build/ +_build/ diff --git a/cmake/FindTSan.cmake b/cmake/FindTSan.cmake index 0e80f29..feabab8 100644 --- a/cmake/FindTSan.cmake +++ b/cmake/FindTSan.cmake @@ -39,9 +39,10 @@ endif () include(sanitize-helpers) if (SANITIZE_THREAD) - if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Linux") + if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND + NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") message(WARNING "ThreadSanitizer disabled for target ${TARGET} because " - "ThreadSanitizer is supported for Linux systems only.") + "ThreadSanitizer is supported for Linux systems and macOS only.") set(SANITIZE_THREAD Off CACHE BOOL "Enable ThreadSanitizer for sanitized targets." FORCE) elseif (NOT ${CMAKE_SIZEOF_VOID_P} EQUAL 8)