Skip to content

Commit c8e2116

Browse files
author
Bar Soloveychik
committed
added fix for makefile
1 parent af1a938 commit c8e2116

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

lldb/unittests/Instruction/CMakeLists.txt

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ add_lldb_unittest(EmulatorTests
22
ARM64/TestAArch64Emulator.cpp
33
LoongArch/TestLoongArchEmulator.cpp
44
RISCV/TestRISCVEmulator.cpp
5-
RISCV/TestRiscvInstEmulation.cpp
6-
5+
76
LINK_COMPONENTS
87
Support
98
${LLVM_TARGETS_TO_BUILD}
@@ -14,7 +13,23 @@ add_lldb_unittest(EmulatorTests
1413
lldbPluginInstructionARM64
1514
lldbPluginInstructionLoongArch
1615
lldbPluginInstructionRISCV
17-
lldbPluginDisassemblerLLVMC
18-
lldbPluginUnwindAssemblyInstEmulation
1916
lldbPluginProcessUtility
2017
)
18+
19+
if ("RISCV" IN_LIST LLVM_TARGETS_TO_BUILD)
20+
add_lldb_unittest(RISCVEmulatorTests
21+
RISCV/TestRiscvInstEmulation.cpp
22+
23+
LINK_COMPONENTS
24+
Support
25+
${LLVM_TARGETS_TO_BUILD}
26+
LINK_LIBS
27+
lldbCore
28+
lldbSymbol
29+
lldbTarget
30+
lldbPluginInstructionRISCV
31+
lldbPluginDisassemblerLLVMC
32+
lldbPluginUnwindAssemblyInstEmulation
33+
lldbPluginProcessUtility
34+
)
35+
endif()

0 commit comments

Comments
 (0)