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

via libc-commits libc-commits at lists.llvm.org
Thu Feb 20 13:11:40 PST 2025


Author: Joseph Huber
Date: 2025-02-20T15:11:37-06:00
New Revision: 87bf23216fc1257e88e0d38730df2d0187ff5bc6

URL: https://github.com/llvm/llvm-project/commit/87bf23216fc1257e88e0d38730df2d0187ff5bc6
DIFF: https://github.com/llvm/llvm-project/commit/87bf23216fc1257e88e0d38730df2d0187ff5bc6.diff

LOG: [libc] Add missing dependencies on `getc` and `ungetc` for GPU (#128069)

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

Added: 
    

Modified: 
    libc/src/stdio/scanf_core/CMakeLists.txt

Removed: 
    


################################################################################
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