Skip to content
  • Cheng Shao's avatar
    6c30c754
    rts: fix clang-specific errors when compiling with TSAN · 6c30c754
    Cheng Shao authored and Andreas Klebinger's avatar Andreas Klebinger committed
    This commit fixes clang-specific rts compilation errors when compiling
    with TSAN:
    
    - clang doesn't have -Wtsan flag
    - Fix prototype of ghc_tsan_* helper functions
    - __tsan_atomic_* functions aren't clang built-ins and
      sanitizer/tsan_interface_atomic.h needs to be included
    - On macOS, TSAN runtime library is
      libclang_rt.tsan_osx_dynamic.dylib, not libtsan. -fsanitize-thread
      as a link-time flag will take care of linking the TSAN runtime
      library anyway so remove tsan as an rts extra library
    
    (cherry picked from commit a9ab9455)
    6c30c754
    rts: fix clang-specific errors when compiling with TSAN
    Cheng Shao authored and Andreas Klebinger's avatar Andreas Klebinger committed
    This commit fixes clang-specific rts compilation errors when compiling
    with TSAN:
    
    - clang doesn't have -Wtsan flag
    - Fix prototype of ghc_tsan_* helper functions
    - __tsan_atomic_* functions aren't clang built-ins and
      sanitizer/tsan_interface_atomic.h needs to be included
    - On macOS, TSAN runtime library is
      libclang_rt.tsan_osx_dynamic.dylib, not libtsan. -fsanitize-thread
      as a link-time flag will take care of linking the TSAN runtime
      library anyway so remove tsan as an rts extra library
    
    (cherry picked from commit a9ab9455)
Loading