From 6335de4a23e4b71020861b872f51bafb79fbe419 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Tue, 2 Apr 2024 15:23:11 -0500 Subject: [PATCH] [libc] Disable '_exit' on the GPU build Summary: There are other dependencies to enable `unistd.h` on the GPU which prevented the header from being generated. This is a POSIX extension and isn't part of the core `libc`, so we can just disable this for now to get the bots gree. --- libc/config/gpu/entrypoints.txt | 3 --- libc/config/gpu/headers.txt | 1 - 2 files changed, 4 deletions(-) diff --git a/libc/config/gpu/entrypoints.txt b/libc/config/gpu/entrypoints.txt index 827b5937e636..4fb87cb9f5a3 100644 --- a/libc/config/gpu/entrypoints.txt +++ b/libc/config/gpu/entrypoints.txt @@ -211,9 +211,6 @@ set(TARGET_LIBC_ENTRYPOINTS # gpu/rpc.h entrypoints libc.src.gpu.rpc_host_call - - # unistd.h entrypoints - libc.src.unistd._exit ) set(TARGET_LIBM_ENTRYPOINTS diff --git a/libc/config/gpu/headers.txt b/libc/config/gpu/headers.txt index 37c063a7ef6f..dd16938da8a4 100644 --- a/libc/config/gpu/headers.txt +++ b/libc/config/gpu/headers.txt @@ -12,7 +12,6 @@ set(TARGET_PUBLIC_HEADERS libc.include.errno libc.include.stdlib libc.include.stdio - libc.include.unistd # Header for RPC extensions libc.include.gpu_rpc