Index: unittests/UnwindAssembly/CMakeLists.txt =================================================================== --- unittests/UnwindAssembly/CMakeLists.txt +++ unittests/UnwindAssembly/CMakeLists.txt @@ -1,2 +1,5 @@ -add_subdirectory(x86) +if ("X86" IN_LIST LLVM_TARGETS_TO_BUILD) + add_subdirectory(x86) +endif() + add_subdirectory(InstEmulation) Index: unittests/UnwindAssembly/InstEmulation/CMakeLists.txt =================================================================== --- unittests/UnwindAssembly/InstEmulation/CMakeLists.txt +++ unittests/UnwindAssembly/InstEmulation/CMakeLists.txt @@ -1 +1,3 @@ -add_lldb_unittest(InstEmulationTests TestArm64InstEmulation.cpp) +if ("AArch64" IN_LIST LLVM_TARGETS_TO_BUILD) + add_lldb_unittest(InstEmulationTests TestArm64InstEmulation.cpp) +endif()