forked from OSchip/llvm-project
[compiler-rt][xray][cmake] Fix a build issue caused by set/item mixup
r319165 introduced a change to CMakeLists.txt for xray where the set of supported architectures for XRay was iterated over, tested if they could be targeted then passed to add_compiler_rt_object_libraries. However all targets were passed, rather than the architecture that was just tested. For cases such as MIPS, where mips and mips64 are supported, cmake would then test if mips64 could be targetted resulting in an attempt to produce multiple identical logical target names, falling afowl of CMP0002. Reviewers: dberris Differential Revision: https://reviews.llvm.org/D40890 llvm-svn: 319893
This commit is contained in:
parent
19380bae05
commit
b0f8e3511b
|
@ -95,7 +95,7 @@ else()
|
|||
foreach(arch ${XRAY_SUPPORTED_ARCH})
|
||||
if(CAN_TARGET_${arch})
|
||||
add_compiler_rt_object_libraries(RTXray
|
||||
ARCHS ${XRAY_SUPPORTED_ARCH}
|
||||
ARCHS ${arch}
|
||||
SOURCES ${XRAY_SOURCES} CFLAGS ${XRAY_CFLAGS}
|
||||
DEFS ${XRAY_COMMON_DEFINITIONS})
|
||||
add_compiler_rt_runtime(clang_rt.xray
|
||||
|
|
Loading…
Reference in New Issue