Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Cheng Shao's avatar
    a9ab9455
    rts: fix clang-specific errors when compiling with TSAN · a9ab9455
    Cheng Shao authored and Marge Bot's avatar Marge Bot 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
    a9ab9455
    History
    rts: fix clang-specific errors when compiling with TSAN
    Cheng Shao authored and Marge Bot's avatar Marge Bot 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
Code owners
Assign users and groups as approvers for specific file changes. Learn more.