[Lldb-commits] [lldb] [lldb-dap] Move Options.td into tool subdirectory (NFC) (PR #165925)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 31 14:38:11 PDT 2025
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/165925
Move Options.td into tool subdirectory as it's only used by the tool, and not the library.
>From 16f3205337c522eb60012e46d9c27c308c477a0d Mon Sep 17 00:00:00 2001
From: Jonas Devlieghere <jonas at devlieghere.com>
Date: Fri, 31 Oct 2025 14:32:10 -0700
Subject: [PATCH] [lldb-dap] Move Options.td into tool subdirectory (NFC)
Move Options.td into tool subdirectory as it's only used by the latter,
and no the library.
---
lldb/tools/lldb-dap/CMakeLists.txt | 3 ---
lldb/tools/lldb-dap/tool/CMakeLists.txt | 4 ++++
lldb/tools/lldb-dap/{ => tool}/Options.td | 0
3 files changed, 4 insertions(+), 3 deletions(-)
rename lldb/tools/lldb-dap/{ => tool}/Options.td (100%)
diff --git a/lldb/tools/lldb-dap/CMakeLists.txt b/lldb/tools/lldb-dap/CMakeLists.txt
index 7db334ca56bcf..dd1bbbdddfc59 100644
--- a/lldb/tools/lldb-dap/CMakeLists.txt
+++ b/lldb/tools/lldb-dap/CMakeLists.txt
@@ -1,9 +1,6 @@
# We need to include the llvm components we depend on manually, as liblldb does
# not re-export those.
set(LLVM_LINK_COMPONENTS Support)
-set(LLVM_TARGET_DEFINITIONS Options.td)
-tablegen(LLVM Options.inc -gen-opt-parser-defs)
-add_public_tablegen_target(LLDBDAPOptionsTableGen)
add_lldb_library(lldbDAP
Breakpoint.cpp
diff --git a/lldb/tools/lldb-dap/tool/CMakeLists.txt b/lldb/tools/lldb-dap/tool/CMakeLists.txt
index b39a4ed9c40e7..5335d25c5d450 100644
--- a/lldb/tools/lldb-dap/tool/CMakeLists.txt
+++ b/lldb/tools/lldb-dap/tool/CMakeLists.txt
@@ -1,3 +1,7 @@
+set(LLVM_TARGET_DEFINITIONS Options.td)
+tablegen(LLVM Options.inc -gen-opt-parser-defs)
+add_public_tablegen_target(LLDBDAPOptionsTableGen)
+
add_lldb_tool(lldb-dap
lldb-dap.cpp
diff --git a/lldb/tools/lldb-dap/Options.td b/lldb/tools/lldb-dap/tool/Options.td
similarity index 100%
rename from lldb/tools/lldb-dap/Options.td
rename to lldb/tools/lldb-dap/tool/Options.td
More information about the lldb-commits
mailing list