[Lldb-commits] [PATCH] D26338: [lldb] Don't build unit tests for unsupported targets
Vedant Kumar via lldb-commits
lldb-commits at lists.llvm.org
Sun Nov 6 18:13:37 PST 2016
vsk created this revision.
vsk added a reviewer: jasonmolenda.
vsk added a subscriber: lldb-commits.
Herald added a subscriber: mgorny.
Should fix: https://llvm.org/bugs/show_bug.cgi?id=30928
https://reviews.llvm.org/D26338
Files:
unittests/UnwindAssembly/CMakeLists.txt
unittests/UnwindAssembly/InstEmulation/CMakeLists.txt
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()
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26338.77001.patch
Type: text/x-patch
Size: 801 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20161107/15f31cd8/attachment.bin>
More information about the lldb-commits
mailing list