Skip to content

Commit 848faf4

Browse files
authored
[lldb] Combine disassembler gtest binaries for efficiency (#133539)
Each of these executables is 642MB for me locally with split DWARF, and we don't need 3 statically linked gtest binaries when one will do.
1 parent 5f56eaf commit 848faf4

File tree

4 files changed

+24
-39
lines changed

4 files changed

+24
-39
lines changed

lldb/unittests/Disassembler/ARM/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,32 @@
1+
set(disas_srcs "")
2+
13
if("ARM" IN_LIST LLVM_TARGETS_TO_BUILD)
2-
add_subdirectory(ARM)
4+
list(APPEND
5+
ARM/TestArm64Disassembly.cpp
6+
ARM/TestArmv7Disassembly.cpp
7+
)
38
endif()
49

510
if("X86" IN_LIST LLVM_TARGETS_TO_BUILD)
6-
add_subdirectory(x86)
11+
list(APPEND disas_srcs
12+
x86/TestGetControlFlowKindx86.cpp
13+
)
714
endif()
815

916
if("RISCV" IN_LIST LLVM_TARGETS_TO_BUILD)
10-
add_subdirectory(RISCV)
17+
list(APPEND disas_srcs
18+
RISCV/TestMCDisasmInstanceRISCV.cpp
19+
)
1120
endif()
21+
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})

lldb/unittests/Disassembler/RISCV/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

lldb/unittests/Disassembler/x86/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)