Author: Reid Kleckner
Date: 2025-03-30T15:14:48-07:00
New Revision: 92e591684576e7244d53722b04e840f28c3f03c3

URL: 
https://github.com/llvm/llvm-project/commit/92e591684576e7244d53722b04e840f28c3f03c3
DIFF: 
https://github.com/llvm/llvm-project/commit/92e591684576e7244d53722b04e840f28c3f03c3.diff

LOG: [lldb] Fix cmake logic when no targets are configured

Should fix reported lldb-remote-linux-ubuntu bot post-submit failure

Added: 
    

Modified: 
    lldb/unittests/Disassembler/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/lldb/unittests/Disassembler/CMakeLists.txt 
b/lldb/unittests/Disassembler/CMakeLists.txt
index 81aff5902db74..2a76158bf90fd 100644
--- a/lldb/unittests/Disassembler/CMakeLists.txt
+++ b/lldb/unittests/Disassembler/CMakeLists.txt
@@ -19,14 +19,16 @@ if("RISCV" IN_LIST LLVM_TARGETS_TO_BUILD)
   )
 endif()
 
-add_lldb_unittest(DisassemblerTests
-  ${disas_srcs}
-  LINK_LIBS
-    lldbCore
-    lldbSymbol
-    lldbTarget
-    lldbPluginDisassemblerLLVMC
-    lldbPluginProcessUtility
-  LINK_COMPONENTS
-    Support
-    ${LLVM_TARGETS_TO_BUILD})
+if (disas_srcs)
+  add_lldb_unittest(DisassemblerTests
+    ${disas_srcs}
+    LINK_LIBS
+      lldbCore
+      lldbSymbol
+      lldbTarget
+      lldbPluginDisassemblerLLVMC
+      lldbPluginProcessUtility
+    LINK_COMPONENTS
+      Support
+      ${LLVM_TARGETS_TO_BUILD})
+endif()


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to