diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2016-12-23 18:40:47 +0000 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2016-12-23 18:40:47 +0000 |
commit | 23f7d5a6ee27e8be5c1f01289059c27cc9bcddda (patch) | |
tree | 92edbdc63b46cdf2f51a66c99d86bd56eb6c9f06 /test/scudo | |
parent | a58ad74ac26944f208dbb3ccb5db82bb64614b03 (diff) |
[scudo] Use the macro get_test_cc_for_arch for the tests
Summary: The macro was introduced with D26929, use it in Scudo as well.
Reviewers: kcc, alekseyshl, kubabrecka
Subscribers: llvm-commits, danalbert, srhines, mgorny
Differential Revision: https://reviews.llvm.org/D28066
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@290439 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/scudo')
-rw-r--r-- | test/scudo/CMakeLists.txt | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/test/scudo/CMakeLists.txt b/test/scudo/CMakeLists.txt index 42cdaf9e8..a89909997 100644 --- a/test/scudo/CMakeLists.txt +++ b/test/scudo/CMakeLists.txt @@ -17,16 +17,7 @@ set(SCUDO_TEST_ARCH ${SCUDO_SUPPORTED_ARCH}) foreach(arch ${SCUDO_TEST_ARCH}) set(SCUDO_TEST_TARGET_ARCH ${arch}) string(TOLOWER "-${arch}" SCUDO_TEST_CONFIG_SUFFIX) - - if(ANDROID OR ${arch} MATCHES "arm|aarch64") - # This is only true if we are cross-compiling. - # Build all tests with host compiler and use host tools. - set(SCUDO_TEST_TARGET_CFLAGS ${COMPILER_RT_TEST_COMPILER_CFLAGS}) - else() - get_target_flags_for_arch(${arch} SCUDO_TEST_TARGET_CFLAGS) - string(REPLACE ";" " " SCUDO_TEST_TARGET_CFLAGS "${SCUDO_TEST_TARGET_CFLAGS}") - endif() - + get_test_cc_for_arch(${arch} SCUDO_TEST_TARGET_CC SCUDO_TEST_TARGET_CFLAGS) string(TOUPPER ${arch} ARCH_UPPER_CASE) set(CONFIG_NAME ${ARCH_UPPER_CASE}${OS_NAME}Config) |