1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/unittests/Target/AArch64/CMakeLists.txt
Quentin Colombet 862e639dc6 Reapply "[GlobalISel] Remove the GISelAccessor API."
This reverts commit r310425, thus reapplying r310335 with a fix for link
issue of the AArch64 unittests on Linux bots when BUILD_SHARED_LIBS is ON.

Original commit message:
[GlobalISel] Remove the GISelAccessor API.

Its sole purpose was to avoid spreading around ifdefs related to
building global-isel. Since r309990, GlobalISel is not optional anymore,
thus, we can get rid of this mechanism all together.

NFC.

----
The fix for the link issue consists in adding the GlobalISel library in
the list of dependencies for the AArch64 unittests. This dependency
comes from the use of AArch64Subtarget that needs to know how
to destruct the GISel related APIs when being detroyed.

Thanks to Bill Seurer and Ahmed Bougacha for helping me reproducing and
understand the problem.

llvm-svn: 310969
2017-08-15 22:31:51 +00:00

23 lines
315 B
CMake

include_directories(
${CMAKE_SOURCE_DIR}/lib/Target/AArch64
${CMAKE_BINARY_DIR}/lib/Target/AArch64
)
set(LLVM_LINK_COMPONENTS
AArch64CodeGen
AArch64Desc
AArch64Info
CodeGen
Core
GlobalISel
MC
MIRParser
SelectionDAG
Support
Target
)
add_llvm_unittest(AArch64Tests
InstSizes.cpp
)