[NFC][Coroutines] Use structured binding with llvm::enumerate in CoroSplit (#116879)
[llvm-project.git] / lldb / tools / driver / CMakeLists.txt
blobcd304a047dea6d255be8d2d7ce48413d6375fb11
1 set(LLVM_TARGET_DEFINITIONS Options.td)
2 tablegen(LLVM Options.inc -gen-opt-parser-defs)
3 add_public_tablegen_target(LLDBOptionsTableGen)
5 if(APPLE)
6   configure_file(
7     ${CMAKE_CURRENT_SOURCE_DIR}/lldb-Info.plist.in
8     ${CMAKE_CURRENT_BINARY_DIR}/lldb-Info.plist
9     )
10   # Inline info plist in binary (use target_link_options for this as soon as CMake 3.13 is available)
11   set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-sectcreate,__TEXT,__info_plist,${CMAKE_CURRENT_BINARY_DIR}/lldb-Info.plist")
12 endif()
14 add_lldb_tool(lldb
15   Driver.cpp
16   Platform.cpp
18   LINK_LIBS
19     liblldb
21   LINK_COMPONENTS
22     Option
23     Support
24   )
26 add_dependencies(lldb
27   LLDBOptionsTableGen
28   ${tablegen_deps}
31 if(LLDB_BUILD_FRAMEWORK)
32   # In the build-tree, we know the exact path to the framework directory.
33   # The installed framework can be in different locations.
34   lldb_setup_rpaths(lldb
35     BUILD_RPATH
36       "${LLDB_FRAMEWORK_ABSOLUTE_BUILD_DIR}"
37     INSTALL_RPATH
38       "@loader_path/../../../SharedFrameworks"
39       "@loader_path/../../System/Library/PrivateFrameworks"
40       "@loader_path/../../Library/PrivateFrameworks"
41   )
42 endif()