summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorShreeyash Pandey <shreeyash335@gmail.com>2025-11-13 05:27:52 +0530
committerGitHub <noreply@github.com>2025-11-12 18:57:52 -0500
commit8c0dadf7b318031f8f7eb3b0cee9947ae3444a16 (patch)
treefadd464d5a4c37b5c0b824d70aa87b11fc2e7b3f /libc
parent18d4da24220e2d189a0726f219724f762fa167cd (diff)
[libc] allow UnitTest suite to be compiled on darwin (#166062)
ExecuteFunctionUnix.cpp which is guarded by this check should reliably work on darwin as it only uses POSIX API - nothing specific to linux.
Diffstat (limited to 'libc')
-rw-r--r--libc/test/UnitTest/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/test/UnitTest/CMakeLists.txt b/libc/test/UnitTest/CMakeLists.txt
index 3197b3d7fd01..54e41ece5f4d 100644
--- a/libc/test/UnitTest/CMakeLists.txt
+++ b/libc/test/UnitTest/CMakeLists.txt
@@ -83,7 +83,7 @@ add_unittest_framework_library(
)
set(libc_death_test_srcs LibcDeathTestExecutors.cpp)
-if(${LIBC_TARGET_OS} STREQUAL "linux")
+if(${LIBC_TARGET_OS} STREQUAL "linux" OR ${LIBC_TARGET_OS} STREQUAL "darwin")
list(APPEND libc_death_test_srcs ExecuteFunctionUnix.cpp)
endif()