[Lldb-commits] [lldb] r294521 - [CMake] Add dependency on Mips target if it is available
Chris Bieneman via lldb-commits
lldb-commits at lists.llvm.org
Wed Feb 8 13:24:51 PST 2017
Author: cbieneman
Date: Wed Feb 8 15:24:51 2017
New Revision: 294521
URL: http://llvm.org/viewvc/llvm-project?rev=294521&view=rev
Log:
[CMake] Add dependency on Mips target if it is available
The Mips plugins conditionally link the Mips backend, so we need to conditionally add the target as a dependency.
This resolves a bot failure from r294515.
http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-buildserver/builds/4606/steps/build%20android/logs/stdio
Modified:
lldb/trunk/source/Plugins/Instruction/MIPS/CMakeLists.txt
lldb/trunk/source/Plugins/Instruction/MIPS64/CMakeLists.txt
Modified: lldb/trunk/source/Plugins/Instruction/MIPS/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Instruction/MIPS/CMakeLists.txt?rev=294521&r1=294520&r2=294521&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Instruction/MIPS/CMakeLists.txt (original)
+++ lldb/trunk/source/Plugins/Instruction/MIPS/CMakeLists.txt Wed Feb 8 15:24:51 2017
@@ -1,3 +1,7 @@
+if(Mips IN_LIST LLVM_TARGETS_TO_BUILD)
+ set(mips_target Mips)
+endif()
+
add_lldb_library(lldbPluginInstructionMIPS PLUGIN
EmulateInstructionMIPS.cpp
@@ -10,4 +14,5 @@ add_lldb_library(lldbPluginInstructionMI
LINK_COMPONENTS
MC
Support
+ ${mips_target}
)
Modified: lldb/trunk/source/Plugins/Instruction/MIPS64/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Instruction/MIPS64/CMakeLists.txt?rev=294521&r1=294520&r2=294521&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Instruction/MIPS64/CMakeLists.txt (original)
+++ lldb/trunk/source/Plugins/Instruction/MIPS64/CMakeLists.txt Wed Feb 8 15:24:51 2017
@@ -1,3 +1,7 @@
+if(Mips IN_LIST LLVM_TARGETS_TO_BUILD)
+ set(mips_target Mips)
+endif()
+
add_lldb_library(lldbPluginInstructionMIPS64 PLUGIN
EmulateInstructionMIPS64.cpp
@@ -10,4 +14,5 @@ add_lldb_library(lldbPluginInstructionMI
LINK_COMPONENTS
MC
Support
+ ${mips_target}
)
More information about the lldb-commits
mailing list