Skip to content

Commit a0a0b97

Browse files
author
Bar Soloveychik
committed
fixed comments/restored original target
1 parent c8e2116 commit a0a0b97

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lldb/unittests/Instruction/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@ add_lldb_unittest(EmulatorTests
55

66
LINK_COMPONENTS
77
Support
8-
${LLVM_TARGETS_TO_BUILD}
98
LINK_LIBS
109
lldbCore
1110
lldbSymbol
1211
lldbTarget
1312
lldbPluginInstructionARM64
1413
lldbPluginInstructionLoongArch
1514
lldbPluginInstructionRISCV
16-
lldbPluginProcessUtility
1715
)
1816

17+
# Only add RISCV emulator tests if RISCV is in the list of LLVM targets to build.
18+
# This is necessary because some buildbots (e.g., X86-only machines)
19+
# do not have RISCV support enabled. Without this check, the RISCV tests would be added
20+
# causing build failures.
1921
if ("RISCV" IN_LIST LLVM_TARGETS_TO_BUILD)
2022
add_lldb_unittest(RISCVEmulatorTests
2123
RISCV/TestRiscvInstEmulation.cpp

0 commit comments

Comments
 (0)