diff options
author | Stefan Granitz <stefan.graenitz@gmail.com> | 2019-06-19 15:25:32 +0000 |
---|---|---|
committer | Stefan Granitz <stefan.graenitz@gmail.com> | 2019-06-19 15:25:32 +0000 |
commit | bc529a69cfddf44a92046d95d846a6acbc51f7cc (patch) | |
tree | c45e26c5f0b96f5ecb129f7e0a489f610fa98d0c /cmake | |
parent | 0b7f4ad0c09b9a861d17f4b4cc10b561809a5fd3 (diff) | |
download | compiler-rt-bc529a69cfddf44a92046d95d846a6acbc51f7cc.tar.gz |
Specify log level for CMake messages (less stderr)
Summary:
Specify message levels in CMake. Prefer STATUS (stdout).
As the default message mode (i.e. level) is NOTICE in CMake, more then necessary messages get printed to stderr. Some tools, noticably ccmake treat this as an error and require additional confirmation and re-running CMake's configuration step.
This commit specifies a mode (either STATUS or WARNING or FATAL_ERROR) instead of the default.
* I used `csearch -f 'llvm-project/.+(CMakeLists\.txt|cmake)' -l 'message\("'` to find all locations.
* Reviewers were chosen by the most common authors of specific files. If there are more suitable reviewers for these CMake changes, please let me know.
Patch by: Christoph Siedentop
Reviewers: zturner, beanz, xiaobai, kbobyrev, lebedev.ri, sgraenitz
Reviewed By: sgraenitz
Subscribers: mgorny, lebedev.ri, #sanitizers, lldb-commits, llvm-commits
Tags: #sanitizers, #lldb, #llvm
Differential Revision: https://reviews.llvm.org/D63370
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@363821 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/CompilerRTDarwinUtils.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/Modules/CompilerRTDarwinUtils.cmake b/cmake/Modules/CompilerRTDarwinUtils.cmake index 5c8745bc5..b50d55b56 100644 --- a/cmake/Modules/CompilerRTDarwinUtils.cmake +++ b/cmake/Modules/CompilerRTDarwinUtils.cmake @@ -410,8 +410,8 @@ macro(darwin_add_embedded_builtin_libraries) INCLUDE ${arch}_FUNCTIONS ${${arch}_SOURCES}) if(NOT ${arch}_filtered_sources) - message("${arch}_SOURCES: ${${arch}_SOURCES}") - message("${arch}_FUNCTIONS: ${${arch}_FUNCTIONS}") + message(WARNING "${arch}_SOURCES: ${${arch}_SOURCES}") + message(WARNING "${arch}_FUNCTIONS: ${${arch}_FUNCTIONS}") message(FATAL_ERROR "Empty filtered sources!") endif() endforeach() |