[compiler-rt] Don't print warning about missing testingsupport if not including tests

Reviewers: samsonov, vitalybuka

Reviewed By: vitalybuka

Subscribers: dberris, mgorny, #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D77375
This commit is contained in:
Raul Tambre 2020-04-09 02:18:42 -07:00 committed by Vitaly Buka
parent 9997ee23ed
commit 3e9d074dea
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ macro(load_llvm_config)
ERROR_QUIET)
if (HAD_ERROR)
message(WARNING "llvm-config finding testingsupport failed with status ${HAD_ERROR}")
else()
elseif(COMPILER_RT_INCLUDE_TESTS)
string(REGEX REPLACE "[ \t]*[\r\n]+[ \t]*" ";" CONFIG_OUTPUT ${CONFIG_OUTPUT})
list(GET CONFIG_OUTPUT 0 LDFLAGS)
list(GET CONFIG_OUTPUT 1 LIBLIST)