[compiler-rt] r291294 - Ensure that only one compiler-rt component is created for lsan

Francis Ricci via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 6 14:45:50 PST 2017


Author: fjricci
Date: Fri Jan  6 16:45:49 2017
New Revision: 291294

URL: http://llvm.org/viewvc/llvm-project?rev=291294&view=rev
Log:
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

Modified:
    compiler-rt/trunk/lib/lsan/CMakeLists.txt

Modified: compiler-rt/trunk/lib/lsan/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/CMakeLists.txt?rev=291294&r1=291293&r2=291294&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/lsan/CMakeLists.txt Fri Jan  6 16:45:49 2017
@@ -23,9 +23,8 @@ add_compiler_rt_object_libraries(RTLSanC
     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}




More information about the llvm-commits mailing list