Browse Source

Merge pull request #14 from amin-jabri/tsan_osx

Reenable TSan on macOS as newer Xcode toolchains support it.
master
Matt Arsenault 6 years ago
committed by GitHub
parent
commit
6b9a849ff4
2 changed files with 6 additions and 2 deletions
  1. +3
    -0
      .gitignore
  2. +3
    -2
      cmake/FindTSan.cmake

+ 3
- 0
.gitignore View File

@@ -0,0 +1,3 @@
# out-of-source build top-level folders.
build/
_build/

+ 3
- 2
cmake/FindTSan.cmake View File

@@ -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)


Loading…
Cancel
Save