summaryrefslogtreecommitdiff
path: root/test/ubsan
diff options
context:
space:
mode:
authorSagar Thakur <sagar.thakur@imgtec.com>2015-05-19 09:07:37 +0000
committerSagar Thakur <sagar.thakur@imgtec.com>2015-05-19 09:07:37 +0000
commitc5effe75b550641478599a09972de86ac0dbcef7 (patch)
tree54d8a398508480bca3ddccda214a6ebd64b327cc /test/ubsan
parent7fe3eca5365b970f138092e2ae225d7425db6fb1 (diff)
[sanitizer][MIPS] Add --target flag for MIPS32
Without the --target flag, clang uses the mips64 triple which selects the n64 abi. We need to add --target=mips-linux-gnu, so that clang can select the correct abi for mips32r2. Reviewers: dsanders, kcc, samsonov Subscribers: llvm-commits, mohit.bhakkad, jaydeep Differential Revision: http://reviews.llvm.org/D9249 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@237675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ubsan')
-rw-r--r--test/ubsan/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ubsan/CMakeLists.txt b/test/ubsan/CMakeLists.txt
index 85296a3b2..cd197c7ae 100644
--- a/test/ubsan/CMakeLists.txt
+++ b/test/ubsan/CMakeLists.txt
@@ -22,6 +22,7 @@ foreach(arch ${UBSAN_SUPPORTED_ARCH})
set(UBSAN_TEST_TARGET_CFLAGS ${COMPILER_RT_TEST_COMPILER_CFLAGS})
else()
get_target_flags_for_arch(${arch} UBSAN_TEST_TARGET_CFLAGS)
+ string(REPLACE ";" " " UBSAN_TEST_TARGET_CFLAGS "${UBSAN_TEST_TARGET_CFLAGS}")
endif()
add_ubsan_testsuite("Standalone" ubsan ${arch})