[Lldb-commits] [lldb] r286215 - [lldb] Don't build unit tests for unsupported targets
Vedant Kumar via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 7 22:50:00 PST 2016
Author: vedantk
Date: Tue Nov 8 00:49:59 2016
New Revision: 286215
URL: http://llvm.org/viewvc/llvm-project?rev=286215&view=rev
Log:
[lldb] Don't build unit tests for unsupported targets
Differential Revision: https://reviews.llvm.org/D26338
Modified:
lldb/trunk/unittests/UnwindAssembly/CMakeLists.txt
lldb/trunk/unittests/UnwindAssembly/InstEmulation/CMakeLists.txt
Modified: lldb/trunk/unittests/UnwindAssembly/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/UnwindAssembly/CMakeLists.txt?rev=286215&r1=286214&r2=286215&view=diff
==============================================================================
--- lldb/trunk/unittests/UnwindAssembly/CMakeLists.txt (original)
+++ lldb/trunk/unittests/UnwindAssembly/CMakeLists.txt Tue Nov 8 00:49:59 2016
@@ -1,2 +1,5 @@
-add_subdirectory(x86)
+if ("X86" IN_LIST LLVM_TARGETS_TO_BUILD)
+ add_subdirectory(x86)
+endif()
+
add_subdirectory(InstEmulation)
Modified: lldb/trunk/unittests/UnwindAssembly/InstEmulation/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/UnwindAssembly/InstEmulation/CMakeLists.txt?rev=286215&r1=286214&r2=286215&view=diff
==============================================================================
--- lldb/trunk/unittests/UnwindAssembly/InstEmulation/CMakeLists.txt (original)
+++ lldb/trunk/unittests/UnwindAssembly/InstEmulation/CMakeLists.txt Tue Nov 8 00:49:59 2016
@@ -1 +1,3 @@
-add_lldb_unittest(InstEmulationTests TestArm64InstEmulation.cpp)
+if ("AArch64" IN_LIST LLVM_TARGETS_TO_BUILD)
+ add_lldb_unittest(InstEmulationTests TestArm64InstEmulation.cpp)
+endif()
More information about the lldb-commits
mailing list