diff options
author | Kamil Rytarowski <n54@gmx.com> | 2019-07-11 06:22:35 +0000 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2019-07-11 06:22:35 +0000 |
commit | 642fb76849b9c4f557a83eb261065ff3cf85165e (patch) | |
tree | 8393956f51deab65a7b6b77a77c92c3d453732b6 /test | |
parent | 95e0361ed8b0b6150770599b371bb3018f1fcf95 (diff) | |
download | compiler-rt-642fb76849b9c4f557a83eb261065ff3cf85165e.tar.gz |
Add NetBSD LSan support
Summary:
Combine few relatively small changes into one:
- implement internal_ptrace() and internal_clone() for NetBSD
- add support for stoptheworld based on the ptrace(2) API
- define COMPILER_RT_HAS_LSAN for NetBSD
- enable tests for NetBSD/amd64
Inspired by the original implementation by Christos Zoulas in netbsd/src for GCC.
The implementation is in theory CPU independent through well defined macros
across all NetBSD ports, however only the x86_64 version was tested.
Reviewers: mgorny, dvyukov, vitalybuka, joerg, jfb
Reviewed By: vitalybuka
Subscribers: dexonsmith, jfb, srhines, kubamracek, llvm-commits, christos
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D64057
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@365735 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/lsan/lit.common.cfg.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lsan/lit.common.cfg.py b/test/lsan/lit.common.cfg.py index 7548b10c2..945eb196e 100644 --- a/test/lsan/lit.common.cfg.py +++ b/test/lsan/lit.common.cfg.py @@ -70,7 +70,8 @@ config.substitutions.append( ("%clangxx_lsan ", build_invocation(clang_lsan_cxxf # LeakSanitizer tests are currently supported on x86-64 Linux, PowerPC64 Linux, arm Linux, mips64 Linux, and x86_64 Darwin. supported_linux = config.host_os is 'Linux' and config.host_arch in ['x86_64', 'ppc64', 'ppc64le', 'mips64', 'arm', 'armhf', 'armv7l'] supported_darwin = config.host_os is 'Darwin' and config.target_arch is 'x86_64' -if not (supported_linux or supported_darwin): +supported_netbsd = config.host_os is 'NetBSD' and config.target_arch is 'x86_64' +if not (supported_linux or supported_darwin or supported_netbsd): config.unsupported = True # Don't support Thumb due to broken fast unwinder |