From e6c7d5af11385194b22d8e353886d3d426f71bad Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Thu, 20 Feb 2025 15:09:31 -0600 Subject: [PATCH] [libc] Add missing dependencies on `getc` and `ungetc` for GPU Summary: These are required because we don't use the `file` interface. --- libc/src/stdio/scanf_core/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/src/stdio/scanf_core/CMakeLists.txt b/libc/src/stdio/scanf_core/CMakeLists.txt index 35b8b3d318a9f..96e0e1400cb6a 100644 --- a/libc/src/stdio/scanf_core/CMakeLists.txt +++ b/libc/src/stdio/scanf_core/CMakeLists.txt @@ -61,6 +61,8 @@ add_header_library( reader.h DEPENDS libc.src.__support.macros.attributes + libc.src.stdio.getc + libc.src.stdio.ungetc ) elseif((TARGET libc.src.__support.File.file) OR (NOT LLVM_LIBC_FULL_BUILD)) add_header_library(