[llvm] [CMake] Avoid build spam by switching to Debug message (PR #69497)

Vincent Lee via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 18 11:42:47 PDT 2023


https://github.com/thevinster created https://github.com/llvm/llvm-project/pull/69497

This is primarily only useful when debugging. It's generally assumed that users
will have their custom flags applied if it's specified in their CMake cache files.

Addresses https://github.com/llvm/llvm-project/pull/68393#discussion_r1363399029

>From 8e69c973fe9738d5d99c15ab73f3422d007ea3cf Mon Sep 17 00:00:00 2001
From: Vincent Lee <leevince at fb.com>
Date: Wed, 18 Oct 2023 11:40:13 -0700
Subject: [PATCH] [CMake] Avoid build spam by switch to Debug message

---
 llvm/cmake/modules/AddLLVM.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 72661594f643fae..05e4d6c823c0d69 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -1530,7 +1530,7 @@ endmacro(add_llvm_tool_subdirectory)
 
 macro(add_custom_linker_flags name)
   if (LLVM_${name}_LINKER_FLAGS)
-    message(STATUS "Applying ${LLVM_${name}_LINKER_FLAGS} to ${name}")
+    message(DEBUG "Applying ${LLVM_${name}_LINKER_FLAGS} to ${name}")
     target_link_options(${name} PRIVATE ${LLVM_${name}_LINKER_FLAGS})
   endif()
 endmacro()



More information about the llvm-commits mailing list