[all-commits] [llvm/llvm-project] d94fe9: [libc][bazel] add file printf targets and support

michaelrj-google via All-commits all-commits at lists.llvm.org
Wed Apr 26 14:31:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d94fe9728087f905dbd8fc32bc5c4a096b4d28c5
      https://github.com/llvm/llvm-project/commit/d94fe9728087f905dbd8fc32bc5c4a096b4d28c5
  Author: Michael Jones <michaelrj at google.com>
  Date:   2023-04-26 (Wed, 26 Apr 2023)

  Changed paths:
    M libc/src/__support/CMakeLists.txt
    A libc/src/__support/c_string.h
    M libc/src/stdio/fprintf.cpp
    A libc/test/UnitTest/BazelFilePath.cpp
    M libc/test/UnitTest/CMakeLists.txt
    A libc/test/UnitTest/CmakeFilePath.cpp
    M libc/test/UnitTest/LibcTest.h
    M libc/test/UnitTest/Test.h
    M libc/test/src/stdio/fprintf_test.cpp
    M utils/bazel/llvm-project-overlay/libc/BUILD.bazel
    M utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl
    M utils/bazel/llvm-project-overlay/libc/test/UnitTest/BUILD.bazel
    M utils/bazel/llvm-project-overlay/libc/test/src/stdio/BUILD.bazel

  Log Message:
  -----------
  [libc][bazel] add file printf targets and support

This patch adds targets for printf and fprintf to the bazel build.
Additionally, it adds support for the build system to specify where
files should be written for testing purposes. This was necessary to
enable the fprintf test under bazel.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D147008




More information about the All-commits mailing list