From b1f33fc47f29acb32087b04c34fb1af49fa3fb7e Mon Sep 17 00:00:00 2001 From: Joseph Huber 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 836e15d34741b..0bdd72091fe85 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)