[all-commits] [llvm/llvm-project] cb7b0a: tsan: don't include tsan_interceptors.h for Go

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Thu Aug 5 07:56:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb7b0a5f34e54db8e3f56eabd9f477ab02b95f98
      https://github.com/llvm/llvm-project/commit/cb7b0a5f34e54db8e3f56eabd9f477ab02b95f98
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-08-05 (Thu, 05 Aug 2021)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_external.cpp

  Log Message:
  -----------
  tsan: don't include tsan_interceptors.h for Go

None of the interceptors machinery is used/enabled for Go,
so don't include the header, it's not needed (must not be).
The problem is that we have fields in ThreadState that are
not present in the Go build, so changes in thread_interceptors.h
can cause Go build breakages due to missing fields.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D107561




More information about the All-commits mailing list