[compiler-rt] 3e9d074 - [compiler-rt] Don't print warning about missing testingsupport if not including tests
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 9 02:31:59 PDT 2020
Author: Raul Tambre
Date: 2020-04-09T02:31:12-07:00
New Revision: 3e9d074dea36d1463246f3d79bfe302ff45bf160
URL: https://github.com/llvm/llvm-project/commit/3e9d074dea36d1463246f3d79bfe302ff45bf160
DIFF: https://github.com/llvm/llvm-project/commit/3e9d074dea36d1463246f3d79bfe302ff45bf160.diff
LOG: [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
Added:
Modified:
compiler-rt/cmake/Modules/CompilerRTUtils.cmake
Removed:
################################################################################
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)
More information about the llvm-commits
mailing list