Index: lldb/trunk/unittests/UnwindAssembly/CMakeLists.txt =================================================================== --- lldb/trunk/unittests/UnwindAssembly/CMakeLists.txt +++ lldb/trunk/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: lldb/trunk/unittests/UnwindAssembly/InstEmulation/CMakeLists.txt =================================================================== --- lldb/trunk/unittests/UnwindAssembly/InstEmulation/CMakeLists.txt +++ lldb/trunk/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()