Skip to content

Commit 148f309

Browse files
committed
[libc] Additional check for File support in scanf_core
This adds a check for `TARGET libc.src.__support.File.file` before appending ` libc.src.__support.File.file` to file_deps.
1 parent 5981335 commit 148f309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/stdio/scanf_core/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if(LIBC_TARGET_OS_IS_GPU)
1616
libc.src.stdio.ungetc
1717
libc.src.stdio.ferror
1818
)
19-
elseif(LLVM_LIBC_FULL_BUILD)
19+
elseif(TARGET libc.src.__support.File.file AND LLVM_LIBC_FULL_BUILD)
2020
list(APPEND file_deps
2121
libc.src.__support.File.file
2222
)

0 commit comments

Comments
 (0)