File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ elseif(LLVM_LIBC_FULL_BUILD)
363363 message (FATAL_ERROR "${LIBC_CONFIG_PATH} /headers.txt file not found and fullbuild requested." )
364364endif ()
365365
366- # Check exclude.txt that appends to LIBC_EXCLUDE_ENTRYPOINTS list
366+ # Check exclude.txt that appends to TARGET_LLVMLIBC_REMOVED_ENTRYPOINTS list
367367if (EXISTS "${LIBC_CONFIG_PATH} /exclude.txt" )
368368 include ("${LIBC_CONFIG_PATH} /exclude.txt" )
369369endif ()
Original file line number Diff line number Diff line change @@ -19,3 +19,11 @@ if(NOT has_sys_random)
1919 )
2020 endif()
2121endif()
22+
23+ include(CheckSymbolExists)
24+ check_symbol_exists(SYS_faccessat2 "sys/syscall.h" HAVE_SYS_FACCESSAT2)
25+ if(NOT HAVE_SYS_FACCESSAT2)
26+ list(APPEND TARGET_LLVMLIBC_REMOVED_ENTRYPOINTS
27+ libc.src.unistd.faccessat
28+ )
29+ endif()
You can’t perform that action at this time.
0 commit comments