Skip to content

Commit 5949899

Browse files
committed
[libc] Fix missing printf dependencies
1 parent 71c5453 commit 5949899

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

libc/src/stdio/generic/CMakeLists.txt

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,20 @@ add_entrypoint_object(
363363
libc.src.__support.File.platform_file
364364
)
365365

366+
list(APPEND printf_deps
367+
libc.hdr.types.FILE
368+
libc.src.__support.arg_list
369+
libc.src.stdio.printf_core.vfprintf_internal
370+
)
371+
372+
if(LLVM_LIBC_FULL_BUILD)
373+
list(APPEND printf_deps
374+
libc.src.__support.File.file
375+
libc.src.__support.File.platform_file
376+
libc.src.__support.File.platform_stdout
377+
)
378+
endif()
379+
366380
add_entrypoint_object(
367381
printf
368382
SRCS
@@ -390,9 +404,6 @@ add_entrypoint_object(
390404
HDRS
391405
../fprintf.h
392406
DEPENDS
393-
libc.hdr.types.FILE
394-
libc.src.__support.arg_list
395-
libc.src.stdio.printf_core.vfprintf_internal
396407
${printf_deps}
397408
)
398409

@@ -403,9 +414,6 @@ add_entrypoint_object(
403414
HDRS
404415
../vfprintf.h
405416
DEPENDS
406-
libc.hdr.types.FILE
407-
libc.src.__support.arg_list
408-
libc.src.stdio.printf_core.vfprintf_internal
409417
${printf_deps}
410418
)
411419

0 commit comments

Comments
 (0)