summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/CMakeLists.txt')
-rw-r--r--compiler-rt/lib/sanitizer_common/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/CMakeLists.txt b/compiler-rt/lib/sanitizer_common/CMakeLists.txt
index 5ac8e3b8740..d8ea7c8a74e 100644
--- a/compiler-rt/lib/sanitizer_common/CMakeLists.txt
+++ b/compiler-rt/lib/sanitizer_common/CMakeLists.txt
@@ -50,6 +50,12 @@ else()
${SANITIZER_CFLAGS} ${TARGET_I386_CFLAGS})
list(APPEND SANITIZER_RUNTIME_LIBRARIES RTSanitizerCommon.i386)
endif()
+ if(CAN_TARGET_ARM_ANDROID)
+ add_library(RTSanitizerCommon.arm.android OBJECT ${SANITIZER_SOURCES})
+ set_target_compile_flags(RTSanitizerCommon.arm.android
+ ${SANITIZER_CFLAGS} ${TARGET_ARM_ANDROID_CFLAGS})
+ list(APPEND SANITIZER_RUNTIME_LIBRARIES RTSanitizerCommon.arm.android)
+ endif()
endif()
set_property(TARGET ${SANITIZER_RUNTIME_LIBRARIES} APPEND PROPERTY
OpenPOWER on IntegriCloud