[llvm] [cmake] Promote message when failing to find compiler-rt to warning (PR #111834)

Louis Dionne via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 10 06:23:53 PDT 2024


https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/111834

This makes the message stand out a bit more, which can be helpful to debug situations where compiler-rt is missing but shouldn't.

>From 270b8383a17820680b5e9b31b86161bf2bd677d1 Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Thu, 10 Oct 2024 09:22:16 -0400
Subject: [PATCH] [cmake] Promote message when failing to find compiler-rt to
 warning

This makes the message stand out a bit more, which can be helpful to
debug situations where compiler-rt is missing but shouldn't.
---
 cmake/Modules/HandleCompilerRT.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/Modules/HandleCompilerRT.cmake b/cmake/Modules/HandleCompilerRT.cmake
index 0a7c56bc630934..9398d99afdd013 100644
--- a/cmake/Modules/HandleCompilerRT.cmake
+++ b/cmake/Modules/HandleCompilerRT.cmake
@@ -5,7 +5,7 @@
 #    COMPILER_RT_LIBRARY-<name>-<target> to NOTFOUND
 function(cache_compiler_rt_library err_flag name target library_file)
   if(err_flag OR NOT EXISTS "${library_file}")
-    message(STATUS "Failed to find compiler-rt ${name} library for ${target}")
+    message(WARNING "Failed to find compiler-rt ${name} library for ${target}")
     set(COMPILER_RT_LIBRARY_${name}_${target} "NOTFOUND" CACHE INTERNAL
         "compiler-rt ${name} library for ${target}")
   else()



More information about the llvm-commits mailing list