[compiler-rt] r210256 - [asan] Fix lit tests setup on Android.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Thu Jun 5 05:29:47 PDT 2014
Author: eugenis
Date: Thu Jun 5 07:29:47 2014
New Revision: 210256
URL: http://llvm.org/viewvc/llvm-project?rev=210256&view=rev
Log:
[asan] Fix lit tests setup on Android.
Pass cflags in a way that's compatible with standalone compiler-rt build.
Modified:
compiler-rt/trunk/test/asan/CMakeLists.txt
Modified: compiler-rt/trunk/test/asan/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/CMakeLists.txt?rev=210256&r1=210255&r2=210256&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/CMakeLists.txt (original)
+++ compiler-rt/trunk/test/asan/CMakeLists.txt Thu Jun 5 07:29:47 2014
@@ -6,12 +6,12 @@ if(CAN_TARGET_arm_android)
# This is only true if we are cross-compiling.
# Build all tests with host compiler and use host tools.
set(ASAN_TEST_TARGET_CC ${CMAKE_C_COMPILER})
+ set(ASAN_TEST_TARGET_CFLAGS ${COMPILER_RT_TEST_COMPILER_CFLAGS})
get_filename_component(ASAN_TEST_LLVM_TOOLS_DIR ${CMAKE_C_COMPILER} PATH)
set(ASAN_TEST_CONFIG_SUFFIX "-arm-android")
set(ASAN_TEST_BITS "32")
set(ASAN_TEST_DYNAMIC True)
set(ASAN_TEST_TARGET_ARCH "arm-android")
- get_target_flags_for_arch(arm_android ASAN_TEST_TARGET_CFLAGS)
configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/ARMAndroidConfig/lit.site.cfg
More information about the llvm-commits
mailing list