File tree Expand file tree Collapse file tree 5 files changed +19
-2
lines changed Expand file tree Collapse file tree 5 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -325,8 +325,7 @@ set(TARGET_LIBC_ENTRYPOINTS
325325 libc.src.unistd.dup2
326326 libc.src.unistd.dup3
327327 libc.src.unistd.execve
328- # Disabled while SYS_faccessat2 is unavailable on the buildbot.
329- # libc.src.unistd.faccessat
328+ libc.src.unistd.faccessat
330329 libc.src.unistd.fchdir
331330 libc.src.unistd.fpathconf
332331 libc.src.unistd.fsync
Original file line number Diff line number Diff line change 1+ include(CheckSymbolExists)
2+ check_symbol_exists(SYS_faccessat2 "sys/syscall.h" HAVE_SYS_FACCESSAT2)
3+ if(NOT HAVE_SYS_FACCESSAT2)
4+ message(VERBOSE "unistd.faccessat excluded from build, faccessat2 syscall is not available on the system")
5+ list(APPEND TARGET_LLVMLIBC_REMOVED_ENTRYPOINTS
6+ libc.src.unistd.faccessat
7+ )
8+ endif()
Original file line number Diff line number Diff line change @@ -329,6 +329,7 @@ set(TARGET_LIBC_ENTRYPOINTS
329329 libc.src.unistd.dup2
330330 libc.src.unistd.dup3
331331 libc.src.unistd.execve
332+ libc.src.unistd.faccessat
332333 libc.src.unistd.fchdir
333334 libc.src.unistd.fpathconf
334335 libc.src.unistd.fsync
Original file line number Diff line number Diff line change 1+ include(CheckSymbolExists)
2+ check_symbol_exists(SYS_faccessat2 "sys/syscall.h" HAVE_SYS_FACCESSAT2)
3+ if(NOT HAVE_SYS_FACCESSAT2)
4+ message(VERBOSE "unistd.faccessat excluded from build, faccessat2 syscall is not available on the system")
5+ list(APPEND TARGET_LLVMLIBC_REMOVED_ENTRYPOINTS
6+ libc.src.unistd.faccessat
7+ )
8+ endif()
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ endif()
2323include(CheckSymbolExists)
2424check_symbol_exists(SYS_faccessat2 "sys/syscall.h" HAVE_SYS_FACCESSAT2)
2525if(NOT HAVE_SYS_FACCESSAT2)
26+ message(VERBOSE "unistd.faccessat excluded from build, faccessat2 syscall is not available on the system")
2627 list(APPEND TARGET_LLVMLIBC_REMOVED_ENTRYPOINTS
2728 libc.src.unistd.faccessat
2829 )
You can’t perform that action at this time.
0 commit comments