From ef6614e4a231f1477405949e0f4d01c3feb191ce Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Fri, 22 Apr 2022 14:38:12 -0700 Subject: [PATCH] [libc] Fix PrintfMatcher Cmake Rule The PrintfMatcher depends on printf which is in stdio. Stdio is currently fullbuild only, but the matcher wasn't, causing failing builds when fullbuild was off. This patch adds the fullbuild condition to the PrintfMatcher cmake. Differential Revision: https://reviews.llvm.org/D124304 --- libc/utils/UnitTest/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libc/utils/UnitTest/CMakeLists.txt b/libc/utils/UnitTest/CMakeLists.txt index 88d6ab8..622dbb4 100644 --- a/libc/utils/UnitTest/CMakeLists.txt +++ b/libc/utils/UnitTest/CMakeLists.txt @@ -54,6 +54,13 @@ add_dependencies( libc.src.__support.CPP.array_ref ) +if(NOT LLVM_LIBC_FULL_BUILD) # TODO(michaelrj): make a more permanant solution. + return() +endif() + +#currently stdio is fullbuild only, so this matcher that depends on a piece of +#printf also has to be fullbuild only. + add_library( LibcPrintfHelpers PrintfMatcher.h -- 2.7.4