[AArch64,ELF] Restrict MOVZ/MOVK to non-PIC large code model (#70178)
[llvm-project.git] / lldb / unittests / Process / Utility / CMakeLists.txt
blob651f871621fdfcddc9a2e826f3009da3427a240d
1 set(FREEBSD_SOURCES
2   RegisterContextFreeBSDTest.cpp)
3 set(NETBSD_SOURCES
4   RegisterContextNetBSDTest_i386.cpp
5   RegisterContextNetBSDTest_x86_64.cpp)
7 if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
8   list(APPEND PLATFORM_SOURCES ${FREEBSD_SOURCES})
9 elseif (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
10   list(APPEND PLATFORM_SOURCES ${NETBSD_SOURCES})
11 endif()
13 set(LLVM_OPTIONAL_SOURCES
14   ${FREEBSD_SOURCES}
15   ${NETBSD_SOURCES})
17 add_lldb_unittest(ProcessUtilityTests
18   LinuxProcMapsTest.cpp
19   MemoryTagManagerAArch64MTETest.cpp
20   RegisterContextTest.cpp
21   ${PLATFORM_SOURCES}
23   LINK_LIBS
24     lldbPluginProcessUtility
25     LLVMTestingSupport)