Skip to content

Commit a459d11

Browse files
use same logic as vfscanf_internal
1 parent 09194c2 commit a459d11

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

libc/src/stdio/scanf_core/CMakeLists.txt

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ add_header_library(
6767
libc.src.stdio.getc
6868
libc.src.stdio.ungetc
6969
)
70-
elseif(NOT (TARGET libc.src.__support.File.file) )
70+
elseif( (TARGET libc.src.__support.File.file) OR (NOT LLVM_LIBC_FULL_BUILD) )
7171
add_header_library(
7272
reader
7373
# SRCS
@@ -81,20 +81,6 @@ add_header_library(
8181
COMPILE_OPTIONS
8282
${use_system_file}
8383
)
84-
elseif((LLVM_LIBC_FULL_BUILD))
85-
add_object_library(
86-
reader
87-
SRCS
88-
reader.cpp
89-
HDRS
90-
reader.h
91-
DEPENDS
92-
libc.src.__support.macros.attributes
93-
libc.src.__support.File.file
94-
libc.hdr.types.FILE
95-
# ${use_system_file}
96-
)
97-
9884
endif()
9985

10086
add_object_library(

0 commit comments

Comments
 (0)