Chris Bieneman | c12cabb | 2016-05-31 20:21:44 | [diff] [blame] | 1 | cmake_minimum_required(VERSION 3.4.3) |
Saleem Abdulrasool | 2046d72 | 2019-12-22 21:57:46 | [diff] [blame] | 2 | if(CMAKE_SYSTEM_NAME STREQUAL Windows) |
| 3 | cmake_minimum_required(VERSION 3.13) |
| 4 | endif() |
Pavel Labath | 6512cad | 2015-07-17 15:50:48 | [diff] [blame] | 5 | |
Pavel Labath | 105f949 | 2019-02-18 10:09:29 | [diff] [blame] | 6 | if(POLICY CMP0075) |
| 7 | cmake_policy(SET CMP0075 NEW) |
| 8 | endif() |
| 9 | |
Konrad Kleine | 0e79947 | 2019-05-22 13:23:15 | [diff] [blame] | 10 | # Add path for custom modules. |
Chris Bieneman | 2246972 | 2017-04-27 16:04:26 | [diff] [blame] | 11 | set(CMAKE_MODULE_PATH |
| 12 | ${CMAKE_MODULE_PATH} |
| 13 | "${CMAKE_CURRENT_SOURCE_DIR}/cmake" |
| 14 | "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" |
| 15 | ) |
| 16 | |
Jonas Devlieghere | 7f24757 | 2019-07-17 16:47:02 | [diff] [blame] | 17 | # If we are not building as part of LLVM, build LLDB as a standalone project, |
| 18 | # using LLVM as an external library. |
| 19 | if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) |
Haibo Huang | 79d117f | 2019-07-29 23:09:31 | [diff] [blame] | 20 | project(lldb) |
Jonas Devlieghere | 7f24757 | 2019-07-17 16:47:02 | [diff] [blame] | 21 | include(LLDBStandalone) |
Saleem Abdulrasool | e56ba374 | 2019-10-29 15:24:10 | [diff] [blame] | 22 | |
| 23 | set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ standard to conform to") |
| 24 | set(CMAKE_CXX_STANDARD_REQUIRED YES) |
| 25 | set(CMAKE_CXX_EXTENSIONS NO) |
Jonas Devlieghere | 7f24757 | 2019-07-17 16:47:02 | [diff] [blame] | 26 | endif() |
| 27 | |
Chris Bieneman | 2246972 | 2017-04-27 16:04:26 | [diff] [blame] | 28 | include(LLDBConfig) |
| 29 | include(AddLLDB) |
Todd Fiala | b6ee2f8 | 2014-05-28 17:06:04 | [diff] [blame] | 30 | |
Konrad Kleine | 0e79947 | 2019-05-22 13:23:15 | [diff] [blame] | 31 | # Define the LLDB_CONFIGURATION_xxx matching the build type. |
Leonard Mosescu | 63ed8c6 | 2017-10-04 20:23:56 | [diff] [blame] | 32 | if( uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG" ) |
| 33 | add_definitions( -DLLDB_CONFIGURATION_DEBUG ) |
| 34 | else() |
| 35 | add_definitions( -DLLDB_CONFIGURATION_RELEASE ) |
| 36 | endif() |
| 37 | |
Chris Bieneman | e142631 | 2017-07-28 15:39:50 | [diff] [blame] | 38 | if(APPLE) |
| 39 | add_definitions(-DLLDB_USE_OS_LOG) |
| 40 | endif() |
| 41 | |
Jonas Devlieghere | 9d0c5f9 | 2019-02-12 00:30:21 | [diff] [blame] | 42 | if (WIN32) |
| 43 | add_definitions(-D_ENABLE_EXTENDED_ALIGNED_STORAGE) |
| 44 | endif() |
| 45 | |
Jonas Devlieghere | 4e26cf2 | 2019-12-13 18:37:33 | [diff] [blame] | 46 | if (LLDB_ENABLE_PYTHON) |
Haibo Huang | 61f471a | 2019-10-07 23:49:01 | [diff] [blame] | 47 | execute_process( |
| 48 | COMMAND ${PYTHON_EXECUTABLE} |
Luboš Luňák | 79d8996 | 2019-10-15 19:24:37 | [diff] [blame] | 49 | -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(True, False, ''))" |
Haibo Huang | 61f471a | 2019-10-07 23:49:01 | [diff] [blame] | 50 | OUTPUT_VARIABLE LLDB_PYTHON_DEFAULT_RELATIVE_PATH |
| 51 | OUTPUT_STRIP_TRAILING_WHITESPACE) |
| 52 | |
| 53 | file(TO_CMAKE_PATH ${LLDB_PYTHON_DEFAULT_RELATIVE_PATH} LLDB_PYTHON_DEFAULT_RELATIVE_PATH) |
| 54 | set(LLDB_PYTHON_RELATIVE_PATH ${LLDB_PYTHON_DEFAULT_RELATIVE_PATH} |
| 55 | CACHE STRING "Path where Python modules are installed, relative to install prefix") |
Todd Fiala | 8422c5a | 2014-07-04 06:43:47 | [diff] [blame] | 56 | endif () |
Raphael Isemann | 6f4fb4e | 2019-07-12 15:30:55 | [diff] [blame] | 57 | |
Martin Storsjö | 9a3fab9 | 2019-12-22 08:01:09 | [diff] [blame] | 58 | if (LLDB_ENABLE_PYTHON OR LLDB_ENABLE_LUA) |
Jonas Devlieghere | 6498aff | 2020-01-09 15:57:59 | [diff] [blame] | 59 | add_subdirectory(bindings) |
Martin Storsjö | 9a3fab9 | 2019-12-22 08:01:09 | [diff] [blame] | 60 | endif () |
Jonas Devlieghere | bf03e17 | 2019-12-08 23:32:57 | [diff] [blame] | 61 | |
Raphael Isemann | 5c5408ce | 2019-08-15 07:29:53 | [diff] [blame] | 62 | # We need the headers generated by instrinsics_gen before we can compile |
| 63 | # any source file in LLDB as the imported Clang modules might include |
| 64 | # some of these generated headers. This approach is copied from Clang's main |
| 65 | # CMakeLists.txt, so it should kept in sync the code in Clang which was added |
| 66 | # in llvm-svn 308844. |
| 67 | if(LLVM_ENABLE_MODULES AND NOT LLDB_BUILT_STANDALONE) |
| 68 | list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen) |
| 69 | endif() |
| 70 | |
Nathan Lanza | 0c6ad3d | 2019-07-18 00:21:57 | [diff] [blame] | 71 | if(CMAKE_CROSSCOMPILING AND LLDB_BUILT_STANDALONE) |
| 72 | set(LLVM_USE_HOST_TOOLS ON) |
| 73 | include(CrossCompile) |
Nathan Lanza | 01eb3ab | 2019-07-18 23:40:23 | [diff] [blame] | 74 | if (NOT NATIVE_LLVM_DIR OR NOT NATIVE_Clang_DIR) |
Nathan Lanza | 0c6ad3d | 2019-07-18 00:21:57 | [diff] [blame] | 75 | message(FATAL_ERROR |
Nathan Lanza | 01eb3ab | 2019-07-18 23:40:23 | [diff] [blame] | 76 | "Crosscompiling standalone requires the variables NATIVE_{CLANG,LLVM}_DIR |
Nathan Lanza | 0c6ad3d | 2019-07-18 00:21:57 | [diff] [blame] | 77 | for building the native lldb-tblgen used during the build process.") |
| 78 | endif() |
| 79 | llvm_create_cross_target(lldb NATIVE "" Release |
Nathan Lanza | 01eb3ab | 2019-07-18 23:40:23 | [diff] [blame] | 80 | -DLLVM_DIR=${NATIVE_LLVM_DIR} |
| 81 | -DClang_DIR=${NATIVE_Clang_DIR}) |
Nathan Lanza | 0c6ad3d | 2019-07-18 00:21:57 | [diff] [blame] | 82 | endif() |
| 83 | |
Jonas Devlieghere | 7070a0b | 2019-07-26 18:14:04 | [diff] [blame] | 84 | # TableGen |
Raphael Isemann | 6f4fb4e | 2019-07-12 15:30:55 | [diff] [blame] | 85 | add_subdirectory(utils/TableGen) |
Jonas Devlieghere | 7070a0b | 2019-07-26 18:14:04 | [diff] [blame] | 86 | |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 | [diff] [blame] | 87 | add_subdirectory(source) |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 | [diff] [blame] | 88 | add_subdirectory(tools) |
Jonas Devlieghere | 8c3513f | 2019-04-29 16:29:10 | [diff] [blame] | 89 | add_subdirectory(docs) |
Chris Bieneman | cc59060 | 2017-10-06 22:21:36 | [diff] [blame] | 90 | |
Stefan Granitz | bb3df52 | 2019-01-11 18:11:04 | [diff] [blame] | 91 | option(LLDB_INCLUDE_TESTS "Generate build targets for the LLDB unit tests." ${LLVM_INCLUDE_TESTS}) |
Chris Bieneman | cc59060 | 2017-10-06 22:21:36 | [diff] [blame] | 92 | if(LLDB_INCLUDE_TESTS) |
| 93 | add_subdirectory(test) |
| 94 | add_subdirectory(unittests) |
Jonas Devlieghere | e1f6b68 | 2020-01-17 06:30:03 | [diff] [blame] | 95 | add_subdirectory(utils) |
Chris Bieneman | cc59060 | 2017-10-06 22:21:36 | [diff] [blame] | 96 | endif() |
Zachary Turner | aeda626 | 2015-02-17 22:20:29 | [diff] [blame] | 97 | |
Jonas Devlieghere | 4e26cf2 | 2019-12-13 18:37:33 | [diff] [blame] | 98 | if (LLDB_ENABLE_PYTHON) |
Jonas Devlieghere | 6498aff | 2020-01-09 15:57:59 | [diff] [blame] | 99 | get_target_property(lldb_bindings_dir swig_wrapper BINARY_DIR) |
Haibo Huang | 7b9900d | 2019-10-11 00:12:20 | [diff] [blame] | 100 | |
| 101 | if(LLDB_BUILD_FRAMEWORK) |
Haibo Huang | 77a60f0 | 2019-10-30 17:33:05 | [diff] [blame] | 102 | set(lldb_python_build_path "${LLDB_FRAMEWORK_ABSOLUTE_BUILD_DIR}/LLDB.framework/Resources/Python/lldb") |
Haibo Huang | 7b9900d | 2019-10-11 00:12:20 | [diff] [blame] | 103 | else() |
| 104 | set(lldb_python_build_path "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${LLDB_PYTHON_RELATIVE_PATH}/lldb") |
| 105 | endif() |
Haibo Huang | 7b9900d | 2019-10-11 00:12:20 | [diff] [blame] | 106 | |
| 107 | # Add a Post-Build Event to copy over Python files and create the symlink |
| 108 | # to liblldb.so for the Python API(hardlink on Windows). |
Haibo Huang | 99046b8 | 2019-10-16 05:22:53 | [diff] [blame] | 109 | add_custom_target(finish_swig ALL VERBATIM |
Haibo Huang | 1d4a407 | 2019-10-16 18:00:21 | [diff] [blame] | 110 | COMMAND ${CMAKE_COMMAND} -E make_directory ${lldb_python_build_path} |
Jonas Devlieghere | 6498aff | 2020-01-09 15:57:59 | [diff] [blame] | 111 | DEPENDS ${lldb_bindings_dir}/lldb.py |
Haibo Huang | 7b9900d | 2019-10-11 00:12:20 | [diff] [blame] | 112 | COMMENT "Python script sym-linking LLDB Python API") |
| 113 | |
Haibo Huang | 1d4a407 | 2019-10-16 18:00:21 | [diff] [blame] | 114 | if(NOT LLDB_USE_SYSTEM_SIX) |
| 115 | add_custom_command(TARGET finish_swig POST_BUILD VERBATIM |
| 116 | COMMAND ${CMAKE_COMMAND} -E copy |
| 117 | "${LLDB_SOURCE_DIR}/third_party/Python/module/six/six.py" |
| 118 | "${lldb_python_build_path}/../six.py") |
| 119 | endif() |
| 120 | |
| 121 | add_custom_command(TARGET finish_swig POST_BUILD VERBATIM |
| 122 | COMMAND ${CMAKE_COMMAND} -E copy |
Jonas Devlieghere | 6498aff | 2020-01-09 15:57:59 | [diff] [blame] | 123 | "${lldb_bindings_dir}/lldb.py" |
Haibo Huang | 1d4a407 | 2019-10-16 18:00:21 | [diff] [blame] | 124 | "${lldb_python_build_path}/__init__.py") |
| 125 | |
Jonas Devlieghere | e5290a0 | 2019-12-02 20:25:03 | [diff] [blame] | 126 | function(create_python_package pkg_dir) |
| 127 | cmake_parse_arguments(ARG "NOINIT" "" "FILES" ${ARGN}) |
Haibo Huang | 99046b8 | 2019-10-16 05:22:53 | [diff] [blame] | 128 | if(ARG_FILES) |
| 129 | set(copy_cmd COMMAND ${CMAKE_COMMAND} -E copy ${ARG_FILES} ${pkg_dir}) |
| 130 | endif() |
Jonas Devlieghere | e5290a0 | 2019-12-02 20:25:03 | [diff] [blame] | 131 | if(NOT ARG_NOINIT) |
| 132 | set(init_cmd COMMAND ${PYTHON_EXECUTABLE} |
Jonas Devlieghere | 6498aff | 2020-01-09 15:57:59 | [diff] [blame] | 133 | "${LLDB_SOURCE_DIR}/bindings/python/createPythonInit.py" |
Jonas Devlieghere | e5290a0 | 2019-12-02 20:25:03 | [diff] [blame] | 134 | "${pkg_dir}" ${ARG_FILES}) |
| 135 | endif() |
| 136 | add_custom_command(TARGET finish_swig POST_BUILD VERBATIM |
Haibo Huang | 99046b8 | 2019-10-16 05:22:53 | [diff] [blame] | 137 | COMMAND ${CMAKE_COMMAND} -E make_directory ${pkg_dir} |
| 138 | ${copy_cmd} |
Jonas Devlieghere | e5290a0 | 2019-12-02 20:25:03 | [diff] [blame] | 139 | ${init_cmd} |
Haibo Huang | 99046b8 | 2019-10-16 05:22:53 | [diff] [blame] | 140 | WORKING_DIRECTORY ${lldb_python_build_path}) |
| 141 | endfunction() |
| 142 | |
| 143 | add_custom_command(TARGET finish_swig POST_BUILD VERBATIM |
| 144 | COMMAND ${CMAKE_COMMAND} -E copy |
| 145 | "${LLDB_SOURCE_DIR}/source/Interpreter/embedded_interpreter.py" ${lldb_python_build_path}) |
| 146 | |
Jonas Devlieghere | e5290a0 | 2019-12-02 20:25:03 | [diff] [blame] | 147 | # Distribute the examples as python packages. |
| 148 | create_python_package("formatters/cpp" |
Haibo Huang | 99046b8 | 2019-10-16 05:22:53 | [diff] [blame] | 149 | FILES "${LLDB_SOURCE_DIR}/examples/synthetic/gnu_libstdcpp.py" |
| 150 | "${LLDB_SOURCE_DIR}/examples/synthetic/libcxx.py") |
Jonas Devlieghere | e5290a0 | 2019-12-02 20:25:03 | [diff] [blame] | 151 | |
| 152 | create_python_package("formatters" |
Haibo Huang | 99046b8 | 2019-10-16 05:22:53 | [diff] [blame] | 153 | FILES "${LLDB_SOURCE_DIR}/examples/summaries/cocoa/cache.py" |
| 154 | "${LLDB_SOURCE_DIR}/examples/summaries/synth.py" |
| 155 | "${LLDB_SOURCE_DIR}/examples/summaries/cocoa/metrics.py" |
| 156 | "${LLDB_SOURCE_DIR}/examples/summaries/cocoa/attrib_fromdict.py" |
| 157 | "${LLDB_SOURCE_DIR}/examples/summaries/cocoa/Logger.py") |
Jonas Devlieghere | e5290a0 | 2019-12-02 20:25:03 | [diff] [blame] | 158 | |
| 159 | create_python_package("utils" |
Jonas Devlieghere | 8f2c100 | 2019-12-02 20:27:43 | [diff] [blame] | 160 | FILES "${LLDB_SOURCE_DIR}/examples/python/in_call_stack.py" |
| 161 | "${LLDB_SOURCE_DIR}/examples/python/symbolication.py") |
Jonas Devlieghere | e5290a0 | 2019-12-02 20:25:03 | [diff] [blame] | 162 | |
Haibo Huang | 99046b8 | 2019-10-16 05:22:53 | [diff] [blame] | 163 | if(APPLE) |
Jonas Devlieghere | e5290a0 | 2019-12-02 20:25:03 | [diff] [blame] | 164 | create_python_package("macosx" |
Haibo Huang | 99046b8 | 2019-10-16 05:22:53 | [diff] [blame] | 165 | FILES "${LLDB_SOURCE_DIR}/examples/python/crashlog.py" |
| 166 | "${LLDB_SOURCE_DIR}/examples/darwin/heap_find/heap.py") |
Jonas Devlieghere | e5290a0 | 2019-12-02 20:25:03 | [diff] [blame] | 167 | |
| 168 | create_python_package("macosx/heap" |
| 169 | FILES "${LLDB_SOURCE_DIR}/examples/darwin/heap_find/heap/heap_find.cpp" |
| 170 | "${LLDB_SOURCE_DIR}/examples/darwin/heap_find/heap/Makefile" |
| 171 | NOINIT) |
| 172 | |
| 173 | create_python_package("diagnose" |
Haibo Huang | 99046b8 | 2019-10-16 05:22:53 | [diff] [blame] | 174 | FILES "${LLDB_SOURCE_DIR}/examples/python/diagnose_unwind.py" |
| 175 | "${LLDB_SOURCE_DIR}/examples/python/diagnose_nsstring.py") |
| 176 | endif() |
| 177 | |
Haibo Huang | 208e9c0 | 2019-10-15 21:58:45 | [diff] [blame] | 178 | function(create_relative_symlink target dest_file output_dir output_name) |
| 179 | get_filename_component(dest_file ${dest_file} ABSOLUTE) |
| 180 | get_filename_component(output_dir ${output_dir} ABSOLUTE) |
| 181 | file(RELATIVE_PATH rel_dest_file ${output_dir} ${dest_file}) |
| 182 | if(CMAKE_HOST_UNIX) |
| 183 | set(LLVM_LINK_OR_COPY create_symlink) |
| 184 | else() |
| 185 | set(LLVM_LINK_OR_COPY copy) |
| 186 | endif() |
| 187 | add_custom_command(TARGET ${target} POST_BUILD VERBATIM |
| 188 | COMMAND ${CMAKE_COMMAND} -E ${LLVM_LINK_OR_COPY} ${rel_dest_file} ${output_name} |
| 189 | WORKING_DIRECTORY ${output_dir}) |
| 190 | endfunction() |
| 191 | |
| 192 | if(LLDB_BUILD_FRAMEWORK) |
Haibo Huang | 77a60f0 | 2019-10-30 17:33:05 | [diff] [blame] | 193 | set(LIBLLDB_SYMLINK_DEST "${LLDB_FRAMEWORK_ABSOLUTE_BUILD_DIR}/LLDB.framework/LLDB") |
Haibo Huang | 208e9c0 | 2019-10-15 21:58:45 | [diff] [blame] | 194 | else() |
| 195 | set(LIBLLDB_SYMLINK_DEST "${LLVM_SHLIB_OUTPUT_INTDIR}/liblldb${CMAKE_SHARED_LIBRARY_SUFFIX}") |
| 196 | endif() |
| 197 | if(WIN32) |
| 198 | if(CMAKE_BUILD_TYPE STREQUAL Debug) |
| 199 | set(LIBLLDB_SYMLINK_OUTPUT_FILE "_lldb_d.pyd") |
| 200 | else() |
| 201 | set(LIBLLDB_SYMLINK_OUTPUT_FILE "_lldb.pyd") |
| 202 | endif() |
| 203 | else() |
| 204 | set(LIBLLDB_SYMLINK_OUTPUT_FILE "_lldb.so") |
| 205 | endif() |
| 206 | create_relative_symlink(finish_swig ${LIBLLDB_SYMLINK_DEST} |
| 207 | ${lldb_python_build_path} ${LIBLLDB_SYMLINK_OUTPUT_FILE}) |
| 208 | |
| 209 | if(NOT LLDB_BUILD_FRAMEWORK) |
| 210 | set(LLDB_ARGDUMPER_FILENAME "lldb-argdumper${CMAKE_EXECUTABLE_SUFFIX}") |
| 211 | create_relative_symlink(finish_swig "${LLVM_RUNTIME_OUTPUT_INTDIR}/${LLDB_ARGDUMPER_FILENAME}" |
| 212 | ${lldb_python_build_path} ${LLDB_ARGDUMPER_FILENAME}) |
| 213 | endif() |
| 214 | |
Haibo Huang | 7b9900d | 2019-10-11 00:12:20 | [diff] [blame] | 215 | add_dependencies(finish_swig swig_wrapper liblldb lldb-argdumper) |
| 216 | set_target_properties(finish_swig swig_wrapper PROPERTIES FOLDER "lldb misc") |
| 217 | |
| 218 | # Ensure we do the python post-build step when building lldb. |
| 219 | add_dependencies(lldb finish_swig) |
| 220 | |
Haibo Huang | 6a79e08 | 2019-11-05 01:04:54 | [diff] [blame] | 221 | # Install the LLDB python module |
| 222 | if(LLDB_BUILD_FRAMEWORK) |
| 223 | set(LLDB_PYTHON_INSTALL_PATH ${LLDB_FRAMEWORK_INSTALL_DIR}/LLDB.framework/Resources/Python) |
| 224 | else() |
| 225 | set(LLDB_PYTHON_INSTALL_PATH ${LLDB_PYTHON_RELATIVE_PATH}) |
| 226 | endif() |
| 227 | add_custom_target(lldb-python-scripts) |
| 228 | add_dependencies(lldb-python-scripts finish_swig) |
| 229 | install(DIRECTORY ${lldb_python_build_path}/../ |
| 230 | DESTINATION ${LLDB_PYTHON_INSTALL_PATH} |
| 231 | COMPONENT lldb-python-scripts) |
| 232 | if (NOT LLVM_ENABLE_IDE) |
| 233 | add_llvm_install_targets(install-lldb-python-scripts |
| 234 | COMPONENT lldb-python-scripts |
| 235 | DEPENDS lldb-python-scripts) |
Haibo Huang | 7b9900d | 2019-10-11 00:12:20 | [diff] [blame] | 236 | endif() |
Stefan Granitz | f126ce6 | 2019-01-04 12:46:50 | [diff] [blame] | 237 | |
Haibo Huang | 7b9900d | 2019-10-11 00:12:20 | [diff] [blame] | 238 | # Add a Post-Build Event to copy the custom Python DLL to the lldb binaries dir so that Windows can find it when launching |
| 239 | # lldb.exe or any other executables that were linked with liblldb. |
| 240 | if (WIN32 AND NOT "${PYTHON_DLL}" STREQUAL "") |
| 241 | # When using the Visual Studio CMake generator the lldb binaries end up in Release/bin, Debug/bin etc. |
| 242 | file(TO_NATIVE_PATH "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin" LLDB_BIN_DIR) |
| 243 | file(TO_NATIVE_PATH "${PYTHON_DLL}" PYTHON_DLL_NATIVE_PATH) |
| 244 | add_custom_command( |
| 245 | TARGET finish_swig |
| 246 | POST_BUILD |
| 247 | COMMAND ${CMAKE_COMMAND} -E copy ${PYTHON_DLL_NATIVE_PATH} ${LLDB_BIN_DIR} VERBATIM |
| 248 | COMMENT "Copying Python DLL to LLDB binaries directory.") |
| 249 | endif () |
Zachary Turner | aeda626 | 2015-02-17 22:20:29 | [diff] [blame] | 250 | endif () |
Stefan Granitz | 05adc0f | 2019-07-10 11:09:11 | [diff] [blame] | 251 | |
Stefan Granitz | 6454a20 | 2019-07-18 16:44:45 | [diff] [blame] | 252 | if(LLDB_BUILT_STANDALONE AND NOT LLVM_ENABLE_IDE) |
Stefan Granitz | 05adc0f | 2019-07-10 11:09:11 | [diff] [blame] | 253 | llvm_distribution_add_targets() |
| 254 | endif() |