This revision was automatically updated to reflect the committed changes. Closed by commit rGd46ea783e6fa: [LLDB] Simplify cmake for instruction emulation unit tests (authored by DavidSpickett).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D133024/new/ https://reviews.llvm.org/D133024 Files: lldb/unittests/Instruction/CMakeLists.txt Index: lldb/unittests/Instruction/CMakeLists.txt =================================================================== --- lldb/unittests/Instruction/CMakeLists.txt +++ lldb/unittests/Instruction/CMakeLists.txt @@ -1,29 +1,14 @@ -set(FILES "") -set(DEPS "") - -if ("ARM" IN_LIST LLVM_TARGETS_TO_BUILD) - list(APPEND FILES ARM64/TestAArch64Emulator.cpp) - list(APPEND DEPS lldbPluginInstructionARM64) -endif () - -if ("RISCV" IN_LIST LLVM_TARGETS_TO_BUILD) - list(APPEND FILES RISCV/TestRISCVEmulator.cpp) - list(APPEND DEPS lldbPluginInstructionRISCV) -endif () - -list(LENGTH FILES LISTLEN) - -if (LISTLEN GREATER 0) - add_lldb_unittest(EmulatorTests - ${FILES} - - LINK_LIBS - lldbCore - lldbSymbol - lldbTarget - ${DEPS} - LINK_COMPONENTS - Support - ${LLVM_TARGETS_TO_BUILD} - ) -endif () +add_lldb_unittest(EmulatorTests + ARM64/TestAArch64Emulator.cpp + RISCV/TestRISCVEmulator.cpp + + LINK_LIBS + lldbCore + lldbSymbol + lldbTarget + lldbPluginInstructionARM64 + lldbPluginInstructionRISCV + + LINK_COMPONENTS + Support + ) \ No newline at end of file
Index: lldb/unittests/Instruction/CMakeLists.txt =================================================================== --- lldb/unittests/Instruction/CMakeLists.txt +++ lldb/unittests/Instruction/CMakeLists.txt @@ -1,29 +1,14 @@ -set(FILES "") -set(DEPS "") - -if ("ARM" IN_LIST LLVM_TARGETS_TO_BUILD) - list(APPEND FILES ARM64/TestAArch64Emulator.cpp) - list(APPEND DEPS lldbPluginInstructionARM64) -endif () - -if ("RISCV" IN_LIST LLVM_TARGETS_TO_BUILD) - list(APPEND FILES RISCV/TestRISCVEmulator.cpp) - list(APPEND DEPS lldbPluginInstructionRISCV) -endif () - -list(LENGTH FILES LISTLEN) - -if (LISTLEN GREATER 0) - add_lldb_unittest(EmulatorTests - ${FILES} - - LINK_LIBS - lldbCore - lldbSymbol - lldbTarget - ${DEPS} - LINK_COMPONENTS - Support - ${LLVM_TARGETS_TO_BUILD} - ) -endif () +add_lldb_unittest(EmulatorTests + ARM64/TestAArch64Emulator.cpp + RISCV/TestRISCVEmulator.cpp + + LINK_LIBS + lldbCore + lldbSymbol + lldbTarget + lldbPluginInstructionARM64 + lldbPluginInstructionRISCV + + LINK_COMPONENTS + Support + ) \ No newline at end of file
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits