summaryrefslogtreecommitdiff
path: root/cmake/config-ix.cmake
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2018-12-22 06:56:19 +0000
committerKamil Rytarowski <n54@gmx.com>2018-12-22 06:56:19 +0000
commit2835fe7cf7dc2add5f2c93f4f6470b0f07863c28 (patch)
treeaec916c9c37ad4b6fb958f0575afe642c2cb0033 /cmake/config-ix.cmake
parent4883225a7b173e5bd1e490926c4d2f0bf45b0065 (diff)
downloadcompiler-rt-2835fe7cf7dc2add5f2c93f4f6470b0f07863c28.tar.gz
Add support for LLVM profile for NetBSD
Summary: NetBSD uses typical UNIX interfaces. All tests pass except instrprof-dlopen-dlclose-gcov.test, as there is not supported semantics of atexit(3) in dlopen(3)ed+dlclose(3)d DSO. NetBSD also ships an older version of LLVM profile (ABI v.2 predating ABI v.4 in upstream version) inside libc. That copy has been manually removed during the porting and testing process of the upstream version to NetBSD. Otherwise there were conflicts between them two. Reviewers: joerg, vitalybuka, vsk Subscribers: srhines, fedor.sergeev, llvm-commits, mgorny, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D55997 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@349994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/config-ix.cmake')
-rw-r--r--cmake/config-ix.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 7e9ad6355..db5c4645d 100644
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -586,7 +586,7 @@ else()
endif()
if (PROFILE_SUPPORTED_ARCH AND NOT LLVM_USE_SANITIZER AND
- OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows|Android|Fuchsia|SunOS")
+ OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows|Android|Fuchsia|SunOS|NetBSD")
set(COMPILER_RT_HAS_PROFILE TRUE)
else()
set(COMPILER_RT_HAS_PROFILE FALSE)