Skip to content

Commit 92e5916

Browse files
committed
[lldb] Fix cmake logic when no targets are configured
Should fix reported lldb-remote-linux-ubuntu bot post-submit failure
1 parent 848faf4 commit 92e5916

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

lldb/unittests/Disassembler/CMakeLists.txt

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ if("RISCV" IN_LIST LLVM_TARGETS_TO_BUILD)
1919
)
2020
endif()
2121

22-
add_lldb_unittest(DisassemblerTests
23-
${disas_srcs}
24-
LINK_LIBS
25-
lldbCore
26-
lldbSymbol
27-
lldbTarget
28-
lldbPluginDisassemblerLLVMC
29-
lldbPluginProcessUtility
30-
LINK_COMPONENTS
31-
Support
32-
${LLVM_TARGETS_TO_BUILD})
22+
if (disas_srcs)
23+
add_lldb_unittest(DisassemblerTests
24+
${disas_srcs}
25+
LINK_LIBS
26+
lldbCore
27+
lldbSymbol
28+
lldbTarget
29+
lldbPluginDisassemblerLLVMC
30+
lldbPluginProcessUtility
31+
LINK_COMPONENTS
32+
Support
33+
${LLVM_TARGETS_TO_BUILD})
34+
endif()

0 commit comments

Comments
 (0)