summaryrefslogtreecommitdiffstats
path: root/lldb/tools/driver/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/tools/driver/CMakeLists.txt')
-rw-r--r--lldb/tools/driver/CMakeLists.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/lldb/tools/driver/CMakeLists.txt b/lldb/tools/driver/CMakeLists.txt
index 9e01a6b67ea..6127fad604f 100644
--- a/lldb/tools/driver/CMakeLists.txt
+++ b/lldb/tools/driver/CMakeLists.txt
@@ -1,3 +1,7 @@
+set(LLVM_TARGET_DEFINITIONS Options.td)
+tablegen(LLVM Options.inc -gen-opt-parser-defs)
+add_public_tablegen_target(LLDBOptionsTableGen)
+
if ((CMAKE_SYSTEM_NAME MATCHES "Windows") OR
(CMAKE_SYSTEM_NAME MATCHES "NetBSD" ))
# These targets do not have getopt support, so they rely on the one provided by
@@ -17,6 +21,7 @@ add_lldb_tool(lldb
${host_lib}
LINK_COMPONENTS
+ Option
Support
)
@@ -24,4 +29,8 @@ if ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
add_definitions( -DIMPORT_LIBLLDB )
endif()
-add_dependencies(lldb ${LLDB_SUITE_TARGET})
+add_dependencies(lldb
+ ${LLDB_SUITE_TARGET}
+ LLDBOptionsTableGen
+ ${tablegen_deps}
+)
OpenPOWER on IntegriCloud