Skip to content

Commit 8c0dadf

Browse files
authored
[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.
1 parent 18d4da2 commit 8c0dadf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/test/UnitTest/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ add_unittest_framework_library(
8383
)
8484

8585
set(libc_death_test_srcs LibcDeathTestExecutors.cpp)
86-
if(${LIBC_TARGET_OS} STREQUAL "linux")
86+
if(${LIBC_TARGET_OS} STREQUAL "linux" OR ${LIBC_TARGET_OS} STREQUAL "darwin")
8787
list(APPEND libc_death_test_srcs ExecuteFunctionUnix.cpp)
8888
endif()
8989

0 commit comments

Comments
 (0)