[compiler-rt] r182272 - Build LSan on x86_64 only if this target is supported
Alexey Samsonov
samsonov at google.com
Mon May 20 07:16:45 PDT 2013
Author: samsonov
Date: Mon May 20 09:16:45 2013
New Revision: 182272
URL: http://llvm.org/viewvc/llvm-project?rev=182272&view=rev
Log:
Build LSan on x86_64 only if this target is supported
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=182272&r1=182271&r2=182272&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/lsan/CMakeLists.txt Mon May 20 09:16:45 2013
@@ -14,13 +14,17 @@ set(LSAN_SOURCES
set(LSAN_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(LSAN_RUNTIME_LIBRARIES)
-set(arch "x86_64")
-add_compiler_rt_static_runtime(clang_rt.lsan-${arch} ${arch}
- SOURCES ${LSAN_SOURCES}
- $<TARGET_OBJECTS:RTInterception.${arch}>
- $<TARGET_OBJECTS:RTSanitizerCommon.${arch}>
- $<TARGET_OBJECTS:RTSanitizerCommonLibc.${arch}>
- CFLAGS ${LSAN_CFLAGS})
-list(APPEND LSAN_RUNTIME_LIBRARIES clang_rt.lsan-${arch})
+
+# FIXME: support LSan for other arches.
+if(CAN_TARGET_x86_64)
+ set(arch "x86_64")
+ add_compiler_rt_static_runtime(clang_rt.lsan-${arch} ${arch}
+ SOURCES ${LSAN_SOURCES}
+ $<TARGET_OBJECTS:RTInterception.${arch}>
+ $<TARGET_OBJECTS:RTSanitizerCommon.${arch}>
+ $<TARGET_OBJECTS:RTSanitizerCommonLibc.${arch}>
+ CFLAGS ${LSAN_CFLAGS})
+ list(APPEND LSAN_RUNTIME_LIBRARIES clang_rt.lsan-${arch})
+endif()
add_subdirectory(tests)
More information about the llvm-commits
mailing list