Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/coreclr/pal/src/configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,18 @@ check_function_exists(vm_read HAVE_VM_READ)
check_function_exists(semget HAS_SYSV_SEMAPHORES)
check_function_exists(pthread_mutex_init HAS_PTHREAD_MUTEXES)
check_function_exists(ttrace HAVE_TTRACE)
check_function_exists(pipe2 HAVE_PIPE2)

set(PREVIOUS_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})
Comment thread
lewing marked this conversation as resolved.
if(CLR_CMAKE_HOST_APPLE)
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -Werror=unguarded-availability-new")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can do this more globally rather than just for this symbol, opened #134073

endif()
check_cxx_symbol_exists(pipe2 unistd.h PAL_HAVE_PIPE2)
Comment thread
lewing marked this conversation as resolved.
if(PAL_HAVE_PIPE2)
set(HAVE_PIPE2 1 CACHE INTERNAL "" FORCE)
else()
set(HAVE_PIPE2 0 CACHE INTERNAL "" FORCE)
Comment thread
lewing marked this conversation as resolved.
endif()
set(CMAKE_REQUIRED_FLAGS ${PREVIOUS_CMAKE_REQUIRED_FLAGS})

check_cxx_source_compiles("
#include <pthread_np.h>
Expand Down