forked from OSchip/llvm-project
Fix multi-architecture build for lib/xray.
Differential Revision: https://reviews.llvm.org/D36881 llvm-svn: 311379
This commit is contained in:
parent
5641c07d6b
commit
9d7a75d617
|
@ -14,10 +14,10 @@ set(XRAY_UNITTEST_CFLAGS
|
|||
macro(add_xray_unittest testname)
|
||||
set(XRAY_TEST_ARCH ${XRAY_SUPPORTED_ARCH})
|
||||
cmake_parse_arguments(TEST "" "" "SOURCES;HEADERS" ${ARGN})
|
||||
set(TEST_OBJECTS)
|
||||
# FIXME: Figure out how to run even just the unit tests on APPLE.
|
||||
if(UNIX AND NOT APPLE)
|
||||
foreach(arch ${XRAY_TEST_ARCH})
|
||||
set(TEST_OBJECTS)
|
||||
generate_compiler_rt_tests(TEST_OBJECTS
|
||||
XRayUnitTests "${testname}-${arch}" "${arch}"
|
||||
SOURCES ${TEST_SOURCES} ${COMPILER_RT_GTEST_SOURCE}
|
||||
|
|
Loading…
Reference in New Issue