[llvm] [libc][bazel] add targets to build the scanf family (PR #128082)
Michael Jones via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 21 12:45:51 PST 2025
================
@@ -4611,6 +4611,178 @@ libc_function(
],
)
+libc_support_library(
+ name = "scanf_config",
+ hdrs = ["src/stdio/scanf_core/scanf_config.h"],
+ deps = [
+ ],
+)
+
+libc_support_library(
+ name = "scanf_core_structs",
+ hdrs = ["src/stdio/scanf_core/core_structs.h"],
+ deps = [
+ ":__support_cpp_bitset",
+ ":__support_cpp_string_view",
+ ":__support_fputil_fp_bits",
+ ":scanf_config",
+ ],
+)
+
+libc_support_library(
+ name = "scanf_parser",
+ hdrs = ["src/stdio/scanf_core/parser.h"],
+ deps = [
+ ":__support_arg_list",
+ ":__support_cpp_bitset",
+ ":__support_ctype_utils",
+ ":__support_str_to_integer",
+ ":scanf_config",
+ ":scanf_core_structs",
+ ],
+)
+
+libc_support_library(
+ name = "scanf_reader",
+ hdrs = ["src/stdio/scanf_core/reader.h"],
+ deps = [
+ ":__support_cpp_string_view",
+ ":__support_macros_attributes",
+ ":types_FILE",
+ ],
+)
+
+libc_support_library(
+ name = "scanf_converter",
+ srcs = [
+ "src/stdio/scanf_core/converter.cpp",
+ "src/stdio/scanf_core/float_converter.cpp",
+ "src/stdio/scanf_core/int_converter.cpp",
+ "src/stdio/scanf_core/ptr_converter.cpp",
+ "src/stdio/scanf_core/string_converter.cpp",
+ ],
+ hdrs = [
+ "src/stdio/scanf_core/converter.h",
+ "src/stdio/scanf_core/converter_utils.h",
----------------
michaelrj-google wrote:
Interesting, I didn't know that internal headers were handled differently from the interface headers.
https://github.com/llvm/llvm-project/pull/128082
More information about the llvm-commits
mailing list