From 1fb895e890b095e9b155239d28ec21340aa538de Mon Sep 17 00:00:00 2001 From: Francis Ricci Date: Fri, 6 Jan 2017 22:45:49 +0000 Subject: [PATCH] Ensure that only one compiler-rt component is created for lsan Summary: The lsan cmake configuration failed when targeting more than one architecture, because it would attempt to create multiple components with the same name. Ensure that only one lsan component is ever created. Reviewers: beanz, bogner Subscribers: dberris, llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D28151 llvm-svn: 291294 --- compiler-rt/lib/lsan/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler-rt/lib/lsan/CMakeLists.txt b/compiler-rt/lib/lsan/CMakeLists.txt index 73e475d2fdba..b782f2421dc2 100644 --- a/compiler-rt/lib/lsan/CMakeLists.txt +++ b/compiler-rt/lib/lsan/CMakeLists.txt @@ -23,9 +23,8 @@ add_compiler_rt_object_libraries(RTLSanCommon CFLAGS ${LSAN_CFLAGS}) if(COMPILER_RT_HAS_LSAN) + add_compiler_rt_component(lsan) foreach(arch ${LSAN_SUPPORTED_ARCH}) - add_compiler_rt_component(lsan) - add_compiler_rt_runtime(clang_rt.lsan STATIC ARCHS ${arch}