mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 14:23:10 -05:00
LinkerId: Suppress decorated diagnostics during linker inspection
Fixes: #26747
This commit is contained in:
@@ -67,6 +67,8 @@ function(CMAKE_DETERMINE_COMPILER_ABI lang src)
|
||||
# executables. This may lead to issues when their stderr output (which
|
||||
# contains the relevant compiler internals) becomes interweaved.
|
||||
string(REGEX REPLACE "(^| )-pipe( |$)" " " ${v} "${${v}}")
|
||||
# Suppress any formatting of warnings and/or errors
|
||||
string(REGEX REPLACE "(-f|/)diagnostics(-|:)color(=[a-z]+)?" "" ${v} "${${v}}")
|
||||
endforeach()
|
||||
|
||||
# Save the current LC_ALL, LC_MESSAGES, and LANG environment variables
|
||||
|
||||
Reference in New Issue
Block a user