forked from OSchip/llvm-project
parent
2191faa433
commit
07d648fcaf
|
@ -123,39 +123,39 @@ if(APPLE)
|
||||||
else()
|
else()
|
||||||
# Build separate libraries for each target.
|
# Build separate libraries for each target.
|
||||||
|
|
||||||
set(ASAN_COMMON_RUNTIME_OBJECT_LIBS
|
set(ASAN_COMMON_RUNTIME_OBJECT_LIBS
|
||||||
RTInterception
|
RTInterception
|
||||||
RTSanitizerCommon
|
RTSanitizerCommon
|
||||||
RTSanitizerCommonLibc
|
RTSanitizerCommonLibc
|
||||||
RTLSanCommon
|
RTLSanCommon
|
||||||
RTUbsan)
|
RTUbsan)
|
||||||
|
|
||||||
add_compiler_rt_runtime(clang_rt.asan
|
add_compiler_rt_runtime(clang_rt.asan
|
||||||
STATIC
|
STATIC
|
||||||
ARCHS ${ASAN_SUPPORTED_ARCH}
|
ARCHS ${ASAN_SUPPORTED_ARCH}
|
||||||
OBJECT_LIBS RTAsan_preinit
|
OBJECT_LIBS RTAsan_preinit
|
||||||
RTAsan
|
RTAsan
|
||||||
${ASAN_COMMON_RUNTIME_OBJECT_LIBS}
|
${ASAN_COMMON_RUNTIME_OBJECT_LIBS}
|
||||||
CFLAGS ${ASAN_CFLAGS}
|
CFLAGS ${ASAN_CFLAGS}
|
||||||
DEFS ${ASAN_COMMON_DEFINITIONS}
|
DEFS ${ASAN_COMMON_DEFINITIONS}
|
||||||
PARENT_TARGET asan)
|
PARENT_TARGET asan)
|
||||||
|
|
||||||
add_compiler_rt_runtime(clang_rt.asan_cxx
|
add_compiler_rt_runtime(clang_rt.asan_cxx
|
||||||
STATIC
|
STATIC
|
||||||
ARCHS ${ASAN_SUPPORTED_ARCH}
|
ARCHS ${ASAN_SUPPORTED_ARCH}
|
||||||
OBJECT_LIBS RTAsan_cxx
|
OBJECT_LIBS RTAsan_cxx
|
||||||
RTUbsan_cxx
|
RTUbsan_cxx
|
||||||
CFLAGS ${ASAN_CFLAGS}
|
CFLAGS ${ASAN_CFLAGS}
|
||||||
DEFS ${ASAN_COMMON_DEFINITIONS}
|
DEFS ${ASAN_COMMON_DEFINITIONS}
|
||||||
PARENT_TARGET asan)
|
PARENT_TARGET asan)
|
||||||
|
|
||||||
add_compiler_rt_runtime(clang_rt.asan-preinit
|
add_compiler_rt_runtime(clang_rt.asan-preinit
|
||||||
STATIC
|
STATIC
|
||||||
ARCHS ${ASAN_SUPPORTED_ARCH}
|
ARCHS ${ASAN_SUPPORTED_ARCH}
|
||||||
OBJECT_LIBS RTAsan_preinit
|
OBJECT_LIBS RTAsan_preinit
|
||||||
CFLAGS ${ASAN_CFLAGS}
|
CFLAGS ${ASAN_CFLAGS}
|
||||||
DEFS ${ASAN_COMMON_DEFINITIONS}
|
DEFS ${ASAN_COMMON_DEFINITIONS}
|
||||||
PARENT_TARGET asan)
|
PARENT_TARGET asan)
|
||||||
|
|
||||||
foreach(arch ${ASAN_SUPPORTED_ARCH})
|
foreach(arch ${ASAN_SUPPORTED_ARCH})
|
||||||
if (UNIX AND NOT ${arch} MATCHES "i386|i686")
|
if (UNIX AND NOT ${arch} MATCHES "i386|i686")
|
||||||
|
|
Loading…
Reference in New Issue