summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Ricci <francisjricci@gmail.com>2017-01-06 22:45:49 +0000
committerFrancis Ricci <francisjricci@gmail.com>2017-01-06 22:45:49 +0000
commit85463e24c71088711c4676e1c876fc53d105abee (patch)
treeec596b117826579043a4f7a139c8a56fa416063e
parentd46b929d4f2835873f6559eb213145ecc66c56ee (diff)
downloadcompiler-rt-85463e24c71088711c4676e1c876fc53d105abee.tar.gz
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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@291294 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/lsan/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/lsan/CMakeLists.txt b/lib/lsan/CMakeLists.txt
index 73e475d2f..b782f2421 100644
--- a/lib/lsan/CMakeLists.txt
+++ b/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}