[PATCH] D28151: Ensure that only one compiler-rt component is created for lsan
Francis Ricci via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 28 20:25:56 PST 2016
fjricci created this revision.
fjricci added reviewers: beanz, bogner.
fjricci added a subscriber: llvm-commits.
Herald added subscribers: mgorny, dberris.
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.
https://reviews.llvm.org/D28151
Files:
lib/lsan/CMakeLists.txt
Index: lib/lsan/CMakeLists.txt
===================================================================
--- lib/lsan/CMakeLists.txt
+++ lib/lsan/CMakeLists.txt
@@ -23,9 +23,8 @@
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}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28151.82646.patch
Type: text/x-patch
Size: 425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161229/b6b828da/attachment.bin>
More information about the llvm-commits
mailing list