diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-01-18 16:51:07 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-01-18 16:51:07 +0000 |
commit | b068483d4d17dc349e1a6899c796bb5a0fbc258d (patch) | |
tree | f61435dd6b7db241c3bccde4357eebb52ae94439 /compiler-rt/lib/interception | |
parent | b4ba99536670b07dec81cc44ee7f64d16849a0c4 (diff) | |
download | bcm5719-llvm-b068483d4d17dc349e1a6899c796bb5a0fbc258d.tar.gz bcm5719-llvm-b068483d4d17dc349e1a6899c796bb5a0fbc258d.zip |
CMake: Generalize build rules for different arches for sanitizer_common, asan, ubsan
llvm-svn: 172829
Diffstat (limited to 'compiler-rt/lib/interception')
-rw-r--r-- | compiler-rt/lib/interception/CMakeLists.txt | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/compiler-rt/lib/interception/CMakeLists.txt b/compiler-rt/lib/interception/CMakeLists.txt index 7640409166d..ca59f2b8211 100644 --- a/compiler-rt/lib/interception/CMakeLists.txt +++ b/compiler-rt/lib/interception/CMakeLists.txt @@ -24,21 +24,16 @@ if(APPLE) # Build universal binary on APPLE. add_library(RTInterception.osx OBJECT ${INTERCEPTION_SOURCES}) set_target_compile_flags(RTInterception.osx ${INTERCEPTION_CFLAGS}) - filter_available_targets(INTERCEPTION_TARGETS x86_64 i386) set_target_properties(RTInterception.osx PROPERTIES - OSX_ARCHITECTURES "${INTERCEPTION_TARGETS}") + OSX_ARCHITECTURES "${SANITIZER_COMMON_SUPPORTED_ARCH}") elseif(ANDROID) add_library(RTInterception.arm.android OBJECT ${INTERCEPTION_SOURCES}) set_target_compile_flags(RTInterception.arm.android ${INTERCEPTION_CFLAGS}) else() # Otherwise, build separate libraries for each target. - if(CAN_TARGET_x86_64) - add_compiler_rt_object_library(RTInterception x86_64 + foreach(arch ${SANITIZER_COMMON_SUPPORTED_ARCH}) + add_compiler_rt_object_library(RTInterception ${arch} SOURCES ${INTERCEPTION_SOURCES} CFLAGS ${INTERCEPTION_CFLAGS}) - endif() - if (CAN_TARGET_i386) - add_compiler_rt_object_library(RTInterception i386 - SOURCES ${INTERCEPTION_SOURCES} CFLAGS ${INTERCEPTION_CFLAGS}) - endif() + endforeach() endif() |