File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
test/src/stdio/scanf_core Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,12 @@ add_header_library(
5454 libc.src.__support.CPP.string_view
5555)
5656
57+ if (NOT (TARGET libc.src.__support.File.file) AND LLVM_LIBC_FULL_BUILD)
58+ # Not all platforms have a file implementation. If file is unvailable, and a
59+ # full build is requested, then we must skip all file based scanf sections.
60+ return ()
61+ endif ()
62+
5763add_object_library(
5864 scanf_main
5965 SRCS
Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ add_libc_unittest(
1818 libc.src.__support.arg_list
1919)
2020
21+ if (NOT (TARGET libc.src.__support.File.file) AND LLVM_LIBC_FULL_BUILD)
22+ # Not all platforms have a file implementation. If file is unvailable, and a
23+ # full build is requested, then we must skip all file based scanf sections.
24+ return ()
25+ endif ()
26+
2127add_libc_unittest(
2228 reader_test
2329 SUITE
You can’t perform that action at this time.
0 commit comments