Skip to content

Commit 7c1f679

Browse files
authored
[lldb][cmake] Use STATUS instead of explicit '--' in message logging (#128196)
Currently, configuring lldb with cmake with separated stdout and stderr gives some unnecessary output in stderr which happens since message statement is used without `[mode]` (See https://cmake.org/cmake/help/v3.31/command/message.html). This patch adds mode `STATUS` instead of explicit `--` at the beginning of messages.
1 parent 4bb04d4 commit 7c1f679

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lldb/source/API/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,23 +206,23 @@ if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
206206
# If we're not exporting all symbols, we'll want to explicitly set
207207
# the exported symbols here. This prevents 'log enable --stack ...'
208208
# from working on some systems but limits the liblldb size.
209-
MESSAGE("-- Symbols (liblldb): exporting all symbols from the lldb namespace")
209+
message(STATUS "Symbols (liblldb): exporting all symbols from the lldb namespace")
210210
add_llvm_symbol_exports(liblldb ${CMAKE_CURRENT_SOURCE_DIR}/liblldb.exports)
211211
elseif (NOT LLDB_EXPORT_ALL_SYMBOLS_EXPORTS_FILE)
212212
# Don't use an explicit export. Instead, tell the linker to export all symbols.
213-
MESSAGE("-- Symbols (liblldb): exporting all symbols from the lldb and lldb_private namespaces")
214-
MESSAGE(WARNING "Private LLDB symbols frequently change and no API stability is guaranteed. "
213+
message(STATUS "Symbols (liblldb): exporting all symbols from the lldb and lldb_private namespaces")
214+
message(WARNING "Private LLDB symbols frequently change and no API stability is guaranteed. "
215215
"Only the SB API is guaranteed to be stable.")
216216
add_llvm_symbol_exports(liblldb ${CMAKE_CURRENT_SOURCE_DIR}/liblldb-private.exports)
217217
else ()
218-
MESSAGE("-- Symbols (liblldb): exporting all symbols specified in the exports "
218+
message(STATUS "Symbols (liblldb): exporting all symbols specified in the exports "
219219
" file '${LLDB_EXPORT_ALL_SYMBOLS_EXPORTS_FILE}'")
220-
MESSAGE(WARNING "Private LLDB symbols frequently change and no API stability is guaranteed. "
220+
message(WARNING "Private LLDB symbols frequently change and no API stability is guaranteed. "
221221
"Only the SB API is guaranteed to be stable.")
222222
add_llvm_symbol_exports(liblldb "${LLDB_EXPORT_ALL_SYMBOLS_EXPORTS_FILE}")
223223
endif()
224224
elseif (LLDB_EXPORT_ALL_SYMBOLS)
225-
MESSAGE("-- Symbols (liblldb): exporting all symbols from the lldb and lldb_private namespaces")
225+
message(STATUS "Symbols (liblldb): exporting all symbols from the lldb and lldb_private namespaces")
226226

227227
# Pull out the various lldb libraries linked into liblldb, these will be used
228228
# when looking for symbols to extract. We ignore most plugin libraries here,

0 commit comments

Comments
 (0)