Fix the UBSan CMake build broken in r182118

llvm-svn: 182177
This commit is contained in:
David Blaikie 2013-05-17 23:57:24 +00:00
parent 6e785ec019
commit 97c3018aac
1 changed files with 3 additions and 1 deletions

View File

@ -83,7 +83,9 @@ else()
add_compiler_rt_object_library(RTSanitizerCommonLibc ${arch}
SOURCES ${SANITIZER_LIBCDEP_SOURCES} CFLAGS ${SANITIZER_CFLAGS})
add_compiler_rt_static_runtime(clang_rt.san-${arch} ${arch}
SOURCES ${SANITIZER_SOURCES} CFLAGS ${SANITIZER_CFLAGS})
SOURCES ${SANITIZER_SOURCES}
$<TARGET_OBJECTS:RTSanitizerCommonLibc.${arch}> CFLAGS
${SANITIZER_CFLAGS})
list(APPEND SANITIZER_RUNTIME_LIBRARIES RTSanitizerCommon.${arch})
endforeach()
endif()