[compiler-rt] r311379 - Fix multi-architecture build for lib/xray.
George Karpenkov via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 21 13:28:32 PDT 2017
Author: george.karpenkov
Date: Mon Aug 21 13:28:32 2017
New Revision: 311379
URL: http://llvm.org/viewvc/llvm-project?rev=311379&view=rev
Log:
Fix multi-architecture build for lib/xray.
Differential Revision: https://reviews.llvm.org/D36881
Modified:
compiler-rt/trunk/lib/xray/tests/CMakeLists.txt
Modified: compiler-rt/trunk/lib/xray/tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/xray/tests/CMakeLists.txt?rev=311379&r1=311378&r2=311379&view=diff
==============================================================================
--- compiler-rt/trunk/lib/xray/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/xray/tests/CMakeLists.txt Mon Aug 21 13:28:32 2017
@@ -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}
More information about the llvm-commits
mailing list