[all-commits] [llvm/llvm-project] cfe028: [gn build] Add build files for LLDB

Nico Weber via All-commits all-commits at lists.llvm.org
Tue Sep 7 12:25:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cfe02847496b856aa1628cae854997833043ec32
      https://github.com/llvm/llvm-project/commit/cfe02847496b856aa1628cae854997833043ec32
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-09-07 (Tue, 07 Sep 2021)

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

  Log Message:
  -----------
  [gn build] Add build files for LLDB

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.

LLDB has a public/private header distinction, but mostly ignores it.
Many libraries include private headers from other modules.

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.

Differential Revision: https://reviews.llvm.org/D109185




More information about the All-commits mailing list