[PATCH] D109185: [gn build] Add build files for LLDB

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 2 12:47:20 PDT 2021


thakis created this revision.
thakis added a reviewer: pcc.
Herald added subscribers: delcypher, sbc100, mgorny, emaste.
Herald added a reviewer: alexander-shaposhnikov.
thakis requested review of this revision.
Herald added subscribers: MaskRay, aheejin.
Herald added a project: LLVM.

This is enough to get the lit-based tests to pass on macOS.

Doesn't yet add build targets for:

- Any LLDB unit tests
- swig bindings
- various targets not needed by lit tests

LLDB has many dependency cycles, something GN doesn't allow. For
that reason, I've omitted some dependency edges. Hopefully we can
clean up the cycles one day.

Since LLDB is the first target the LLVM/GN build that uses Objective-C++
code, add some machinery to the toolchain file to handle that.


https://reviews.llvm.org/D109185

Files:
  lldb/source/Plugins/Process/gdb-remote/CMakeLists.txt
  lldb/source/Symbol/CMakeLists.txt
  llvm/utils/gn/build/BUILD.gn
  llvm/utils/gn/build/toolchain/BUILD.gn
  llvm/utils/gn/secondary/BUILD.gn
  llvm/utils/gn/secondary/lldb/include/lldb/Host/BUILD.gn
  llvm/utils/gn/secondary/lldb/include/lldb/Host/libedit.gni
  llvm/utils/gn/secondary/lldb/source/API/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Breakpoint/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Commands/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Core/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/DataFormatters/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Expression/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Host/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Host/macosx/objcxx/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Initialization/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Interpreter/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/ABI/X86/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/Disassembler/LLVMC/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/DynamicLoader/Static/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/ExpressionParser/Clang/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/Instruction/ARM/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/JITLoader/GDB/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/Language/CPlusPlus/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/Language/ClangCommon/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/Language/ObjC/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/Language/ObjCPlusPlus/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/LanguageRuntime/CPlusPlus/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/LanguageRuntime/ObjC/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/ObjectContainer/BSD-Archive/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/ObjectContainer/Universal-Mach-O/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/ObjectFile/Breakpad/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/ObjectFile/ELF/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/ObjectFile/JIT/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/ObjectFile/Mach-O/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/ObjectFile/PDB/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/ObjectFile/PECOFF/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/ObjectFile/wasm/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/Platform/MacOSX/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/Platform/MacOSX/objcxx/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/Platform/POSIX/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/Platform/Windows/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/Process/Utility/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/Process/elf-core/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/Process/gdb-remote/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/Process/mach-core/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/Process/minidump/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/ScriptInterpreter/None/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/SymbolFile/Breakpad/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/SymbolFile/DWARF/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/SymbolFile/NativePDB/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/SymbolFile/PDB/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/SymbolFile/Symtab/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/SymbolVendor/ELF/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/SymbolVendor/MacOSX/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/SymbolVendor/wasm/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/TypeSystem/Clang/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/UnwindAssembly/InstEmulation/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Plugins/UnwindAssembly/x86/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Symbol/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Target/BUILD.gn
  llvm/utils/gn/secondary/lldb/source/Utility/BUILD.gn
  llvm/utils/gn/secondary/lldb/test/BUILD.gn
  llvm/utils/gn/secondary/lldb/test/lldb_lit_site_cfg_files.gni
  llvm/utils/gn/secondary/lldb/tools/argdumper/BUILD.gn
  llvm/utils/gn/secondary/lldb/tools/driver/BUILD.gn
  llvm/utils/gn/secondary/lldb/tools/lldb-server/BUILD.gn
  llvm/utils/gn/secondary/lldb/tools/lldb-test/BUILD.gn
  llvm/utils/gn/secondary/lldb/tools/lldb-vscode/BUILD.gn
  llvm/utils/gn/secondary/lldb/utils/TableGen/BUILD.gn
  llvm/utils/gn/secondary/lldb/utils/TableGen/lldb_tablegen.gni
  llvm/utils/gn/secondary/lldb/utils/lit-cpuid/BUILD.gn
  llvm/utils/gn/secondary/llvm/utils/llvm-lit/BUILD.gn

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109185.370368.patch
Type: text/x-patch
Size: 103991 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210902/ab9861d5/attachment-0001.bin>


More information about the llvm-commits mailing list