[libc-commits] [libc] [libc] Add missing dependencies on `getc` and `ungetc` for GPU (PR #128069)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Thu Feb 20 13:10:19 PST 2025


https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/128069

Summary:
These are required because we don't use the `file` interface.


>From e6c7d5af11385194b22d8e353886d3d426f71bad Mon Sep 17 00:00:00 2001
From: Joseph Huber <huberjn at outlook.com>
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(



More information about the libc-commits mailing list