From 3e9d074dea36d1463246f3d79bfe302ff45bf160 Mon Sep 17 00:00:00 2001 From: Raul Tambre Date: Thu, 9 Apr 2020 02:18:42 -0700 Subject: [PATCH] [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 --- compiler-rt/cmake/Modules/CompilerRTUtils.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/cmake/Modules/CompilerRTUtils.cmake b/compiler-rt/cmake/Modules/CompilerRTUtils.cmake index 84f24676bd29..a83e916990d7 100644 --- a/compiler-rt/cmake/Modules/CompilerRTUtils.cmake +++ b/compiler-rt/cmake/Modules/CompilerRTUtils.cmake @@ -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)