[libc-commits] [libc] [libc] Disable verbose logging messages on hermetic tests (PR #83954)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Mon Mar 4 19:32:34 PST 2024
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/83954
Summary:
The other test locations only give these messages when we are in verbose
logging mode. The average user does not care about which tests are not
being built, and most platforms will have missing tests.
>From b1f33fc47f29acb32087b04c34fb1af49fa3fb7e Mon Sep 17 00:00:00 2001
From: Joseph Huber <huberjn at outlook.com>
Date: Mon, 4 Mar 2024 21:31:00 -0600
Subject: [PATCH] [libc] Disable verbose logging messages on hermetic tests
Summary:
The other test locations only give these messages when we are in verbose
logging mode. The average user does not care about which tests are not
being built, and most platforms will have missing tests.
---
libc/cmake/modules/LLVMLibCTestRules.cmake | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/libc/cmake/modules/LLVMLibCTestRules.cmake b/libc/cmake/modules/LLVMLibCTestRules.cmake
index 836e15d34741b2..0bdd72091fe854 100644
--- a/libc/cmake/modules/LLVMLibCTestRules.cmake
+++ b/libc/cmake/modules/LLVMLibCTestRules.cmake
@@ -595,9 +595,11 @@ function(add_libc_hermetic_test test_name)
get_object_files_for_test(
link_object_files skipped_entrypoints_list ${fq_deps_list})
if(skipped_entrypoints_list)
- set(msg "Skipping hermetic test ${fq_target_name} as it has missing deps: "
- "${skipped_entrypoints_list}.")
- message(STATUS ${msg})
+ if(LIBC_CMAKE_VERBOSE_LOGGING)
+ set(msg "Skipping hermetic test ${fq_target_name} as it has missing deps: "
+ "${skipped_entrypoints_list}.")
+ message(STATUS ${msg})
+ endif()
return()
endif()
list(REMOVE_DUPLICATES link_object_files)
More information about the libc-commits
mailing list