summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2015-08-27 22:04:02 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2015-08-27 22:04:02 +0000
commit2daddb05dedea95f3920805c874374e829e38acf (patch)
treee0280e1a316738e6acd3c644fd6da48ad1a0edae
parent0f72c8ee4e762ec5aeba20c30ba29787d518698a (diff)
downloadbcm5719-llvm-2daddb05dedea95f3920805c874374e829e38acf.tar.gz
bcm5719-llvm-2daddb05dedea95f3920805c874374e829e38acf.zip
[CMake] Delete unused variable and target.
llvm-svn: 246221
-rw-r--r--compiler-rt/lib/sanitizer_common/CMakeLists.txt13
1 files changed, 1 insertions, 12 deletions
diff --git a/compiler-rt/lib/sanitizer_common/CMakeLists.txt b/compiler-rt/lib/sanitizer_common/CMakeLists.txt
index a457a03fa31..6bda9087e80 100644
--- a/compiler-rt/lib/sanitizer_common/CMakeLists.txt
+++ b/compiler-rt/lib/sanitizer_common/CMakeLists.txt
@@ -129,8 +129,6 @@ append_list_if(SANITIZER_LIMIT_FRAME_SIZE -Wframe-larger-than=570
append_list_if(COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG -Wglobal-constructors
SANITIZER_CFLAGS)
-add_custom_target(sanitizer_common)
-set(SANITIZER_RUNTIME_LIBRARIES)
if(APPLE)
# Build universal binary on APPLE.
@@ -140,12 +138,9 @@ if(APPLE)
SOURCES ${SANITIZER_SOURCES} ${SANITIZER_LIBCDEP_SOURCES}
CFLAGS ${SANITIZER_CFLAGS}
DEFS ${SANITIZER_COMMON_DEFINITIONS})
- foreach(os ${SANITIZER_COMMON_SUPPORTED_OS})
- list(APPEND SANITIZER_RUNTIME_LIBRARIES RTSanitizerCommon.${os})
- endforeach()
else()
# Otherwise, build separate libraries for each target.
-
+
add_compiler_rt_object_libraries(RTSanitizerCommon
ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
SOURCES ${SANITIZER_SOURCES} CFLAGS ${SANITIZER_CFLAGS}
@@ -158,14 +153,8 @@ else()
ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
SOURCES ${SANITIZER_LIBCDEP_SOURCES} CFLAGS ${SANITIZER_CFLAGS}
DEFS ${SANITIZER_COMMON_DEFINITIONS})
- foreach(arch ${SANITIZER_COMMON_SUPPORTED_ARCH})
- list(APPEND SANITIZER_RUNTIME_LIBRARIES RTSanitizerCommon.${arch}
- RTSanitizerCommonLibc.${arch})
- endforeach()
endif()
-add_dependencies(compiler-rt sanitizer_common)
-
# Unit tests for common sanitizer runtime.
if(COMPILER_RT_INCLUDE_TESTS)
add_subdirectory(tests)
OpenPOWER on IntegriCloud