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 /cmake | |
parent | 95e0361ed8b0b6150770599b371bb3018f1fcf95 (diff) |
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 'cmake')
-rw-r--r-- | cmake/config-ix.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index b2ff9184e..92c2c1e2a 100644 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -589,7 +589,7 @@ else() endif() if (COMPILER_RT_HAS_SANITIZER_COMMON AND LSAN_SUPPORTED_ARCH AND - OS_NAME MATCHES "Darwin|Linux") + OS_NAME MATCHES "Darwin|Linux|NetBSD") set(COMPILER_RT_HAS_LSAN TRUE) else() set(COMPILER_RT_HAS_LSAN FALSE) |