[libc][bazel] add targets for sprintf
authorMichael Jones <michaelrj@google.com>
Tue, 14 Mar 2023 22:08:56 +0000 (15:08 -0700)
committerMichael Jones <michaelrj@google.com>
Mon, 20 Mar 2023 22:09:20 +0000 (15:09 -0700)
commit99047c0501e0fe5c60bb583185f3b45bdc112199
tree9e4a55429917126efc4dc28c3fc1f965bdf0b926
parentf2c3a9cbd229791b63d58f7499fe9ebf74c3303b
[libc][bazel] add targets for sprintf

The bazel build is currently overlay mode only, so the FILE functions
are still out of reach for it, but sprintf only uses strings. This adds
targets for sprintf, snprintf, and all the interal printf pieces, as
well as tests.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D146100
libc/src/stdio/printf_core/CMakeLists.txt
utils/bazel/llvm-project-overlay/libc/BUILD.bazel
utils/bazel/llvm-project-overlay/libc/test/UnitTest/BUILD.bazel
utils/bazel/llvm-project-overlay/libc/test/src/stdio/BUILD.bazel [new file with mode: 0644]