[all-commits] [llvm/llvm-project] 438d1f: [libc] add guard for file pieces of printf

michaelrj-google via All-commits all-commits at lists.llvm.org
Mon Aug 15 15:43:36 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 438d1f18a5b79326eef8ea5455ae1553d2c4d411
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-08-15 (Mon, 15 Aug 2022)

  Changed paths:
    M libc/src/stdio/printf_core/CMakeLists.txt
    M libc/test/src/stdio/printf_core/parser_test.cpp

  Log Message:
  [libc] add guard for file pieces of printf

In the printf_core CMake, the file pieces are defined as object
libraries that depend on the File data structure. If these are added
unconditionally they'll try to evaluate that dependancy even when there
is no File available. This patch adds a guard to prevent that error.

Reviewed By: sivachandra

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

More information about the All-commits mailing list