[CMake] Delete unused variable and target.
llvm-svn: 246221
This commit is contained in:
parent
0f72c8ee4e
commit
2daddb05de
|
@ -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
|
append_list_if(COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG -Wglobal-constructors
|
||||||
SANITIZER_CFLAGS)
|
SANITIZER_CFLAGS)
|
||||||
|
|
||||||
add_custom_target(sanitizer_common)
|
|
||||||
set(SANITIZER_RUNTIME_LIBRARIES)
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
# Build universal binary on APPLE.
|
# Build universal binary on APPLE.
|
||||||
|
|
||||||
|
@ -140,12 +138,9 @@ if(APPLE)
|
||||||
SOURCES ${SANITIZER_SOURCES} ${SANITIZER_LIBCDEP_SOURCES}
|
SOURCES ${SANITIZER_SOURCES} ${SANITIZER_LIBCDEP_SOURCES}
|
||||||
CFLAGS ${SANITIZER_CFLAGS}
|
CFLAGS ${SANITIZER_CFLAGS}
|
||||||
DEFS ${SANITIZER_COMMON_DEFINITIONS})
|
DEFS ${SANITIZER_COMMON_DEFINITIONS})
|
||||||
foreach(os ${SANITIZER_COMMON_SUPPORTED_OS})
|
|
||||||
list(APPEND SANITIZER_RUNTIME_LIBRARIES RTSanitizerCommon.${os})
|
|
||||||
endforeach()
|
|
||||||
else()
|
else()
|
||||||
# Otherwise, build separate libraries for each target.
|
# Otherwise, build separate libraries for each target.
|
||||||
|
|
||||||
add_compiler_rt_object_libraries(RTSanitizerCommon
|
add_compiler_rt_object_libraries(RTSanitizerCommon
|
||||||
ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
|
ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
|
||||||
SOURCES ${SANITIZER_SOURCES} CFLAGS ${SANITIZER_CFLAGS}
|
SOURCES ${SANITIZER_SOURCES} CFLAGS ${SANITIZER_CFLAGS}
|
||||||
|
@ -158,14 +153,8 @@ else()
|
||||||
ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
|
ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
|
||||||
SOURCES ${SANITIZER_LIBCDEP_SOURCES} CFLAGS ${SANITIZER_CFLAGS}
|
SOURCES ${SANITIZER_LIBCDEP_SOURCES} CFLAGS ${SANITIZER_CFLAGS}
|
||||||
DEFS ${SANITIZER_COMMON_DEFINITIONS})
|
DEFS ${SANITIZER_COMMON_DEFINITIONS})
|
||||||
foreach(arch ${SANITIZER_COMMON_SUPPORTED_ARCH})
|
|
||||||
list(APPEND SANITIZER_RUNTIME_LIBRARIES RTSanitizerCommon.${arch}
|
|
||||||
RTSanitizerCommonLibc.${arch})
|
|
||||||
endforeach()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_dependencies(compiler-rt sanitizer_common)
|
|
||||||
|
|
||||||
# Unit tests for common sanitizer runtime.
|
# Unit tests for common sanitizer runtime.
|
||||||
if(COMPILER_RT_INCLUDE_TESTS)
|
if(COMPILER_RT_INCLUDE_TESTS)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
|
Loading…
Reference in New Issue