[lldb] Don't build unit tests for unsupported targets
authorVedant Kumar <vsk@apple.com>
Tue, 8 Nov 2016 06:49:59 +0000 (06:49 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 8 Nov 2016 06:49:59 +0000 (06:49 +0000)
Differential Revision: https://reviews.llvm.org/D26338

llvm-svn: 286215

lldb/unittests/UnwindAssembly/CMakeLists.txt
lldb/unittests/UnwindAssembly/InstEmulation/CMakeLists.txt

index a545891..0326011 100644 (file)
@@ -1,2 +1,5 @@
-add_subdirectory(x86)
+if ("X86" IN_LIST LLVM_TARGETS_TO_BUILD)
+  add_subdirectory(x86)
+endif()
+
 add_subdirectory(InstEmulation)
index c3c6c77..5e274a2 100644 (file)
@@ -1 +1,3 @@
-add_lldb_unittest(InstEmulationTests TestArm64InstEmulation.cpp)
+if ("AArch64" IN_LIST LLVM_TARGETS_TO_BUILD)
+  add_lldb_unittest(InstEmulationTests TestArm64InstEmulation.cpp)
+endif()