[PATCH] D102080: [ORC-RT] Add unit test infrastructure, extensible_rtti implementation, unit test
Lang Hames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 7 09:50:21 PDT 2021
lhames added a comment.
I've tried to adapt this from the Xray and TSan test CMakeLists.txt. Most of it makes sense to me (as much as any CMake can), but I was surprised by this pattern which showed up in Xray and TSan (and all the other projects that I looked at):
if (APPLE)
add_orc_lib("RTOrc.test.osx"
$<TARGET_OBJECTS:RTOrc.osx>)
else()
foreach(arch ${ORC_SUPPORTED_ARCH})
add_orc_lib("RTOrc.test.${arch}"
$<TARGET_OBJECTS:RTOrc.${arch}>)
endforeach()
endif()
We're already building runtime libraries, but in the tests it looks like we're building a parallel archive for the runtime and writing it to the test directory for the tests to link against. Is there a reason the tests can't just link against the built runtimes?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102080/new/
https://reviews.llvm.org/D102080
More information about the llvm-commits
mailing list