[all-commits] [llvm/llvm-project] 526e0c: [lldb/Test] Fix ASan/TSan workaround for Xcode Pyt...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Thu Jun 11 19:36:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 526e0c8d15216e6c49b1769c63f5433df6841c64
      https://github.com/llvm/llvm-project/commit/526e0c8d15216e6c49b1769c63f5433df6841c64
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-06-11 (Thu, 11 Jun 2020)

  Changed paths:
    M lldb/test/API/lit.cfg.py
    M lldb/test/API/lit.site.cfg.py.in
    M lldb/test/API/lldbtest.py

  Log Message:
  -----------
  [lldb/Test] Fix ASan/TSan workaround for Xcode Python 3

The Python 3 interpreter in Xcode has a relative RPATH and dyld fails to
load it when we copy it into the build directory.

This patch adds an additional check that the copied binary can be
executed. If it doesn't, we assume we're dealing with the Xcode python
interpreter and return the path to the real executable. That is
sufficient for the sanitizers because only system binaries need to be
copied to work around SIP.

This patch also moves all that logic out of LLDBTest and into the lit
configuration so that it's executed only once per test run, instead of
once for every test. Although I didn't benchmark the difference this
should result in a mild speedup.

Differential revision: https://reviews.llvm.org/D81696




More information about the All-commits mailing list