diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-01-17 20:30:08 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-01-17 20:30:08 +0000 |
commit | ddedd0532b329f183b800690403e347d24821440 (patch) | |
tree | edaafdfead587c1c759279cd4d7c1be0a4b0d64d | |
parent | b96995b67f15110f39c41149543e19c8189abdaf (diff) | |
download | src-vendor/llvm-project/release-9.x.tar.gz src-vendor/llvm-project/release-9.x.zip |
Remove files from vendor/llvm-project/release-9.x which are unused, andvendor/llvm-project/release-9.x
never merged to contrib.
Notes
Notes:
svn path=/vendor/llvm-project/release-9.x/; revision=356842
-rw-r--r-- | libcxx/src/CMakeLists.txt | 495 | ||||
-rw-r--r-- | lld/CMakeLists.txt | 225 | ||||
-rw-r--r-- | lld/COFF/CMakeLists.txt | 48 | ||||
-rw-r--r-- | lld/Common/CMakeLists.txt | 60 | ||||
-rw-r--r-- | lld/ELF/CMakeLists.txt | 67 | ||||
-rw-r--r-- | lld/docs/CMakeLists.txt | 8 | ||||
-rw-r--r-- | lld/lib/CMakeLists.txt | 3 | ||||
-rw-r--r-- | lld/lib/Core/CMakeLists.txt | 28 | ||||
-rw-r--r-- | lld/lib/Driver/CMakeLists.txt | 23 | ||||
-rw-r--r-- | lld/lib/ReaderWriter/CMakeLists.txt | 20 | ||||
-rw-r--r-- | lld/lib/ReaderWriter/MachO/CMakeLists.txt | 35 | ||||
-rw-r--r-- | lld/lib/ReaderWriter/YAML/CMakeLists.txt | 9 | ||||
-rw-r--r-- | lld/tools/lld/CMakeLists.txt | 28 |
13 files changed, 0 insertions, 1049 deletions
diff --git a/libcxx/src/CMakeLists.txt b/libcxx/src/CMakeLists.txt deleted file mode 100644 index 31cd24333a5e..000000000000 --- a/libcxx/src/CMakeLists.txt +++ /dev/null @@ -1,495 +0,0 @@ -set(LIBCXX_LIB_CMAKEFILES_DIR "${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}" PARENT_SCOPE) - -# Get sources -set(LIBCXX_SOURCES - algorithm.cpp - any.cpp - bind.cpp - charconv.cpp - chrono.cpp - condition_variable.cpp - condition_variable_destructor.cpp - debug.cpp - exception.cpp - functional.cpp - future.cpp - hash.cpp - include/apple_availability.h - include/atomic_support.h - include/config_elast.h - include/refstring.h - ios.cpp - iostream.cpp - locale.cpp - memory.cpp - mutex.cpp - mutex_destructor.cpp - new.cpp - optional.cpp - random.cpp - regex.cpp - shared_mutex.cpp - stdexcept.cpp - string.cpp - strstream.cpp - support/runtime/exception_fallback.ipp - support/runtime/exception_glibcxx.ipp - support/runtime/exception_libcxxabi.ipp - support/runtime/exception_libcxxrt.ipp - support/runtime/exception_msvc.ipp - support/runtime/exception_pointer_cxxabi.ipp - support/runtime/exception_pointer_glibcxx.ipp - support/runtime/exception_pointer_msvc.ipp - support/runtime/exception_pointer_unimplemented.ipp - support/runtime/new_handler_fallback.ipp - support/runtime/stdexcept_default.ipp - support/runtime/stdexcept_vcruntime.ipp - system_error.cpp - thread.cpp - typeinfo.cpp - utility.cpp - valarray.cpp - variant.cpp - vector.cpp - ) - -if(WIN32) - list(APPEND LIBCXX_SOURCES - support/win32/locale_win32.cpp - support/win32/support.cpp - support/win32/thread_win32.cpp - ) -elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS") - list(APPEND LIBCXX_SOURCES - support/solaris/mbsnrtowcs.inc - support/solaris/wcsnrtombs.inc - support/solaris/xlocale.cpp - ) -endif() - -if (LIBCXX_ENABLE_FILESYSTEM) - list(APPEND LIBCXX_SOURCES - filesystem/filesystem_common.h - filesystem/operations.cpp - filesystem/directory_iterator.cpp - ) - # Filesystem uses __int128_t, which requires a definition of __muloi4 when - # compiled with UBSAN. This definition is not provided by libgcc_s, but is - # provided by compiler-rt. So we need to disable it to avoid having multiple - # definitions. See filesystem/int128_builtins.cpp. - if (NOT LIBCXX_USE_COMPILER_RT) - list(APPEND LIBCXX_SOURCES - filesystem/int128_builtins.cpp - ) - endif() -endif() - -# Add all the headers to the project for IDEs. -if (LIBCXX_CONFIGURE_IDE) - file(GLOB_RECURSE LIBCXX_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/../include/*) - if(WIN32) - file( GLOB LIBCXX_WIN32_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/../include/support/win32/*.h) - list(APPEND LIBCXX_HEADERS ${LIBCXX_WIN32_HEADERS}) - endif() - # Force them all into the headers dir on MSVC, otherwise they end up at - # project scope because they don't have extensions. - if (MSVC_IDE) - source_group("Header Files" FILES ${LIBCXX_HEADERS}) - endif() -endif() - -if(NOT LIBCXX_INSTALL_LIBRARY) - set(exclude_from_all EXCLUDE_FROM_ALL) -endif() - -# If LIBCXX_CXX_ABI_LIBRARY_PATH is defined we want to add it to the search path. -add_link_flags_if(LIBCXX_CXX_ABI_LIBRARY_PATH - "${CMAKE_LIBRARY_PATH_FLAG}${LIBCXX_CXX_ABI_LIBRARY_PATH}") - - -if (LIBCXX_GENERATE_COVERAGE AND NOT LIBCXX_COVERAGE_LIBRARY) - find_compiler_rt_library(profile LIBCXX_COVERAGE_LIBRARY) -endif() -add_library_flags_if(LIBCXX_COVERAGE_LIBRARY "${LIBCXX_COVERAGE_LIBRARY}") - -if (APPLE AND LLVM_USE_SANITIZER) - if (("${LLVM_USE_SANITIZER}" STREQUAL "Address") OR - ("${LLVM_USE_SANITIZER}" STREQUAL "Address;Undefined") OR - ("${LLVM_USE_SANITIZER}" STREQUAL "Undefined;Address")) - set(LIBFILE "libclang_rt.asan_osx_dynamic.dylib") - elseif("${LLVM_USE_SANITIZER}" STREQUAL "Undefined") - set(LIBFILE "libclang_rt.ubsan_osx_dynamic.dylib") - elseif("${LLVM_USE_SANITIZER}" STREQUAL "Thread") - set(LIBFILE "libclang_rt.tsan_osx_dynamic.dylib") - else() - message(WARNING "LLVM_USE_SANITIZER=${LLVM_USE_SANITIZER} is not supported on OS X") - endif() - if (LIBFILE) - find_compiler_rt_dir(LIBDIR) - if (NOT IS_DIRECTORY "${LIBDIR}") - message(FATAL_ERROR "Cannot find compiler-rt directory on OS X required for LLVM_USE_SANITIZER") - endif() - set(LIBCXX_SANITIZER_LIBRARY "${LIBDIR}/${LIBFILE}") - set(LIBCXX_SANITIZER_LIBRARY "${LIBCXX_SANITIZER_LIBRARY}" PARENT_SCOPE) - message(STATUS "Manually linking compiler-rt library: ${LIBCXX_SANITIZER_LIBRARY}") - add_library_flags("${LIBCXX_SANITIZER_LIBRARY}") - add_link_flags("-Wl,-rpath,${LIBDIR}") - endif() -endif() - -function(cxx_link_system_libraries target) - target_add_link_flags_if_supported(${target} PRIVATE "-nodefaultlibs") - target_add_compile_flags_if_supported(${target} PRIVATE "/Zl") - target_add_link_flags_if_supported(${target} PRIVATE "/nodefaultlib") - - if (LIBCXX_HAS_SYSTEM_LIB) - target_link_libraries(${target} PUBLIC System) - endif() - - if (LIBCXX_HAS_PTHREAD_LIB) - target_link_libraries(${target} PUBLIC pthread) - endif() - - if (LIBCXX_HAS_C_LIB) - target_link_libraries(${target} PUBLIC c) - endif() - - if (LIBCXX_HAS_M_LIB) - target_link_libraries(${target} PUBLIC m) - endif() - - if (LIBCXX_HAS_RT_LIB) - target_link_libraries(${target} PUBLIC rt) - endif() - - if (LIBCXX_USE_COMPILER_RT) - find_compiler_rt_library(builtins LIBCXX_BUILTINS_LIBRARY) - if (LIBCXX_BUILTINS_LIBRARY) - target_link_libraries(${target} PUBLIC "${LIBCXX_BUILTINS_LIBRARY}") - endif() - elseif (LIBCXX_HAS_GCC_S_LIB) - target_link_libraries(${target} PUBLIC gcc_s) - endif() - - if (LIBCXX_HAVE_CXX_ATOMICS_WITH_LIB) - target_link_libraries(${target} PUBLIC atomic) - endif() - - if (MINGW) - target_link_libraries(${target} PUBLIC "${MINGW_LIBRARIES}") - endif() - - if (LIBCXX_TARGETING_MSVC) - if (LIBCXX_DEBUG_BUILD) - set(LIB_SUFFIX "d") - else() - set(LIB_SUFFIX "") - endif() - - target_link_libraries(${target} PUBLIC ucrt${LIB_SUFFIX}) # Universal C runtime - target_link_libraries(${target} PUBLIC vcruntime${LIB_SUFFIX}) # C++ runtime - target_link_libraries(${target} PUBLIC msvcrt${LIB_SUFFIX}) # C runtime startup files - target_link_libraries(${target} PUBLIC msvcprt${LIB_SUFFIX}) # C++ standard library. Required for exception_ptr internals. - # Required for standards-complaint wide character formatting functions - # (e.g. `printfw`/`scanfw`) - target_link_libraries(${target} PUBLIC iso_stdio_wide_specifiers) - endif() -endfunction() - -function(cxx_set_common_defines name) - if(LIBCXX_CXX_ABI_HEADER_TARGET) - add_dependencies(${name} ${LIBCXX_CXX_ABI_HEADER_TARGET}) - endif() - if(WIN32 AND NOT MINGW) - target_compile_definitions(${name} - PRIVATE - # Ignore the -MSC_VER mismatch, as we may build - # with a different compatibility version. - _ALLOW_MSC_VER_MISMATCH - # Don't check the msvcprt iterator debug levels - # as we will define the iterator types; libc++ - # uses a different macro to identify the debug - # level. - _ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH - # We are building the c++ runtime, don't pull in - # msvcprt. - _CRTBLD - # Don't warn on the use of "deprecated" - # "insecure" functions which are standards - # specified. - _CRT_SECURE_NO_WARNINGS - # Use the ISO conforming behaviour for conversion - # in printf, scanf. - _CRT_STDIO_ISO_WIDE_SPECIFIERS) - endif() -endfunction() - -split_list(LIBCXX_COMPILE_FLAGS) -split_list(LIBCXX_LINK_FLAGS) - -# Build the shared library. -if (LIBCXX_ENABLE_SHARED) - add_library(cxx_shared SHARED ${exclude_from_all} ${LIBCXX_SOURCES} ${LIBCXX_HEADERS}) - if(COMMAND llvm_setup_rpath) - llvm_setup_rpath(cxx_shared) - endif() - cxx_link_system_libraries(cxx_shared) - target_link_libraries(cxx_shared PRIVATE ${LIBCXX_LIBRARIES}) - set_target_properties(cxx_shared - PROPERTIES - COMPILE_FLAGS "${LIBCXX_COMPILE_FLAGS}" - LINK_FLAGS "${LIBCXX_LINK_FLAGS}" - OUTPUT_NAME "c++" - VERSION "${LIBCXX_ABI_VERSION}.0" - SOVERSION "${LIBCXX_ABI_VERSION}" - DEFINE_SYMBOL "" - ) - cxx_set_common_defines(cxx_shared) - - # Link against LLVM libunwind - if (LIBCXXABI_USE_LLVM_UNWINDER) - if (NOT LIBCXXABI_STATICALLY_LINK_UNWINDER_IN_SHARED_LIBRARY AND (TARGET unwind_shared OR HAVE_LIBUNWIND)) - target_link_libraries(cxx_shared PUBLIC unwind_shared) - list(APPEND LIBCXX_INTERFACE_LIBRARIES unwind_shared) # For the linker script - elseif (LIBCXXABI_STATICALLY_LINK_UNWINDER_IN_SHARED_LIBRARY AND (TARGET unwind_static OR HAVE_LIBUNWIND)) - # libunwind is already included in libc++abi - else() - target_link_libraries(cxx_shared PRIVATE unwind) - list(APPEND LIBCXX_INTERFACE_LIBRARIES unwind) # For the linker script - endif() - endif() - - # Link against libc++abi - if (LIBCXX_STATICALLY_LINK_ABI_IN_SHARED_LIBRARY) - if (APPLE) - target_link_libraries(cxx_shared PRIVATE "-Wl,-force_load" "${LIBCXX_CXX_STATIC_ABI_LIBRARY}") - else() - target_link_libraries(cxx_shared PRIVATE "-Wl,--whole-archive,-Bstatic" "${LIBCXX_CXX_STATIC_ABI_LIBRARY}" "-Wl,-Bdynamic,--no-whole-archive") - endif() - else() - target_link_libraries(cxx_shared PUBLIC "${LIBCXX_CXX_SHARED_ABI_LIBRARY}") - list(APPEND LIBCXX_INTERFACE_LIBRARIES "${LIBCXX_CXX_SHARED_ABI_LIBRARY}") # For the linker script - endif() - - # Maybe re-export symbols from libc++abi - if (APPLE AND (LIBCXX_CXX_ABI_LIBNAME STREQUAL "libcxxabi" OR - LIBCXX_CXX_ABI_LIBNAME STREQUAL "default") - AND NOT DEFINED LIBCXX_OSX_REEXPORT_LIBCXXABI_SYMBOLS) - set(LIBCXX_OSX_REEXPORT_LIBCXXABI_SYMBOLS ON) - endif() - - if (LIBCXX_OSX_REEXPORT_LIBCXXABI_SYMBOLS) - if ("${CMAKE_OSX_ARCHITECTURES}" MATCHES "^(armv6|armv7|armv7s)$") - set(RE_EXPORT_LIST "${CMAKE_CURRENT_SOURCE_DIR}/../lib/libc++sjlj-abi.v${LIBCXX_LIBCPPABI_VERSION}.exp") - else() - set(RE_EXPORT_LIST "${CMAKE_CURRENT_SOURCE_DIR}/../lib/libc++abi.v${LIBCXX_LIBCPPABI_VERSION}.exp") - endif() - target_link_libraries(cxx_shared PRIVATE - "-Wl,-unexported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/../lib/libc++unexp.exp" - "-Wl,-reexported_symbols_list,${RE_EXPORT_LIST}" - "-Wl,-force_symbols_not_weak_list,${CMAKE_CURRENT_SOURCE_DIR}/../lib/notweak.exp" - "-Wl,-force_symbols_weak_list,${CMAKE_CURRENT_SOURCE_DIR}/../lib/weak.exp") - - if (NOT LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS) - target_link_libraries(cxx_shared PRIVATE "-Wl,-reexported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/../lib/libc++abi-new-delete.exp") - endif() - endif() - - # Generate a linker script in place of a libc++.so symlink. Rerun this command - # after cxx builds. - if (LIBCXX_ENABLE_ABI_LINKER_SCRIPT) - # Get the name of the ABI library and handle the case where CXXABI_LIBNAME - # is a target name and not a library. Ex cxxabi_shared. - set(LIBCXX_INTERFACE_LIBRARY_NAMES) - foreach(lib ${LIBCXX_INTERFACE_LIBRARIES}) - # FIXME: Handle cxxabi_static and unwind_static. - if (TARGET ${lib} OR - (${lib} MATCHES "cxxabi(_static|_shared)?" AND HAVE_LIBCXXABI) OR - (${lib} MATCHES "unwind(_static|_shared)?" AND HAVE_LIBUNWIND)) - list(APPEND LIBCXX_INTERFACE_LIBRARY_NAMES "$<TARGET_PROPERTY:${lib},OUTPUT_NAME>") - else() - list(APPEND LIBCXX_INTERFACE_LIBRARY_NAMES "${lib}") - endif() - endforeach() - add_custom_command(TARGET cxx_shared POST_BUILD - COMMAND - ${PYTHON_EXECUTABLE} ${LIBCXX_SOURCE_DIR}/utils/gen_link_script.py - ARGS - --input "$<TARGET_SONAME_FILE:cxx_shared>" - --output "$<TARGET_LINKER_FILE:cxx_shared>" - ${LIBCXX_INTERFACE_LIBRARY_NAMES} - WORKING_DIRECTORY ${LIBCXX_BUILD_DIR} - ) - endif() - - list(APPEND LIBCXX_BUILD_TARGETS "cxx_shared") - if(WIN32 AND NOT MINGW AND NOT "${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows") - # Since we most likely do not have a mt.exe replacement, disable the - # manifest bundling. This allows a normal cmake invocation to pass which - # will attempt to use the manifest tool to generate the bundled manifest - set_target_properties(cxx_shared PROPERTIES - APPEND_STRING PROPERTY LINK_FLAGS " /MANIFEST:NO") - endif() -endif() - -# Build the static library. -if (LIBCXX_ENABLE_STATIC) - add_library(cxx_static STATIC ${exclude_from_all} ${LIBCXX_SOURCES} ${LIBCXX_HEADERS}) - cxx_link_system_libraries(cxx_static) - target_link_libraries(cxx_static PRIVATE ${LIBCXX_LIBRARIES}) - set(CMAKE_STATIC_LIBRARY_PREFIX "lib") - set_target_properties(cxx_static - PROPERTIES - COMPILE_FLAGS "${LIBCXX_COMPILE_FLAGS}" - LINK_FLAGS "${LIBCXX_LINK_FLAGS}" - OUTPUT_NAME "c++" - ) - cxx_set_common_defines(cxx_static) - - if (LIBCXX_HERMETIC_STATIC_LIBRARY) - append_flags_if_supported(CXX_STATIC_LIBRARY_FLAGS -fvisibility=hidden) - # If the hermetic library doesn't define the operator new/delete functions - # then its code shouldn't declare them with hidden visibility. They might - # actually be provided by a shared library at link time. - if (LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS) - append_flags_if_supported(CXX_STATIC_LIBRARY_FLAGS -fvisibility-global-new-delete-hidden) - endif() - target_compile_options(cxx_static PRIVATE ${CXX_STATIC_LIBRARY_FLAGS}) - target_compile_definitions(cxx_static PRIVATE _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS) - endif() - - list(APPEND LIBCXX_BUILD_TARGETS "cxx_static") - # Attempt to merge the libc++.a archive and the ABI library archive into one. - if (LIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY) - set(MERGE_ARCHIVES_SEARCH_PATHS "") - if (LIBCXX_CXX_ABI_LIBRARY_PATH) - set(MERGE_ARCHIVES_SEARCH_PATHS "-L${LIBCXX_CXX_ABI_LIBRARY_PATH}") - endif() - if (TARGET "${LIBCXX_CXX_STATIC_ABI_LIBRARY}" OR HAVE_LIBCXXABI) - set(MERGE_ARCHIVES_ABI_TARGET "$<TARGET_LINKER_FILE:${LIBCXX_CXX_STATIC_ABI_LIBRARY}>") - else() - set(MERGE_ARCHIVES_ABI_TARGET - "${CMAKE_STATIC_LIBRARY_PREFIX}${LIBCXX_CXX_STATIC_ABI_LIBRARY}${CMAKE_STATIC_LIBRARY_SUFFIX}") - endif() - if (APPLE) - set(MERGE_ARCHIVES_LIBTOOL "--use-libtool" "--libtool" "${CMAKE_LIBTOOL}") - endif() - add_custom_command(TARGET cxx_static POST_BUILD - COMMAND - ${PYTHON_EXECUTABLE} ${LIBCXX_SOURCE_DIR}/utils/merge_archives.py - ARGS - -o $<TARGET_LINKER_FILE:cxx_static> - --ar "${CMAKE_AR}" - ${MERGE_ARCHIVES_LIBTOOL} - "$<TARGET_LINKER_FILE:cxx_static>" - "${MERGE_ARCHIVES_ABI_TARGET}" - "${MERGE_ARCHIVES_SEARCH_PATHS}" - WORKING_DIRECTORY ${LIBCXX_BUILD_DIR} - ) - endif() -endif() - -# Add a meta-target for both libraries. -add_custom_target(cxx DEPENDS cxx-headers ${LIBCXX_BUILD_TARGETS}) - -if (LIBCXX_ENABLE_EXPERIMENTAL_LIBRARY) - set(LIBCXX_EXPERIMENTAL_SOURCES - experimental/memory_resource.cpp - ) - add_library(cxx_experimental STATIC ${LIBCXX_EXPERIMENTAL_SOURCES}) - if (LIBCXX_ENABLE_SHARED) - target_link_libraries(cxx_experimental cxx_shared) - else() - target_link_libraries(cxx_experimental cxx_static) - endif() - - set(experimental_flags "${LIBCXX_COMPILE_FLAGS}") - check_flag_supported(-std=c++14) - if (NOT MSVC AND LIBCXX_SUPPORTS_STD_EQ_CXX14_FLAG) - string(REPLACE "-std=c++11" "-std=c++14" experimental_flags "${LIBCXX_COMPILE_FLAGS}") - endif() - set_target_properties(cxx_experimental - PROPERTIES - COMPILE_FLAGS "${experimental_flags}" - OUTPUT_NAME "c++experimental" - ) -endif() - -if (LIBCXX_BUILD_EXTERNAL_THREAD_LIBRARY) - file(GLOB LIBCXX_EXTERNAL_THREADING_SUPPORT_SOURCES ../test/support/external_threads.cpp) - - if (LIBCXX_ENABLE_SHARED) - add_library(cxx_external_threads SHARED ${LIBCXX_EXTERNAL_THREADING_SUPPORT_SOURCES}) - else() - add_library(cxx_external_threads STATIC ${LIBCXX_EXTERNAL_THREADING_SUPPORT_SOURCES}) - endif() - - set_target_properties(cxx_external_threads - PROPERTIES - LINK_FLAGS "${LIBCXX_LINK_FLAGS}" - COMPILE_FLAGS "${LIBCXX_COMPILE_FLAGS}" - OUTPUT_NAME "c++external_threads" - ) -endif() - -if (LIBCXX_INSTALL_LIBRARY) - if (LIBCXX_INSTALL_SHARED_LIBRARY) - install(TARGETS cxx_shared - ARCHIVE DESTINATION ${LIBCXX_INSTALL_PREFIX}${LIBCXX_INSTALL_LIBRARY_DIR} COMPONENT cxx - LIBRARY DESTINATION ${LIBCXX_INSTALL_PREFIX}${LIBCXX_INSTALL_LIBRARY_DIR} COMPONENT cxx - RUNTIME DESTINATION ${LIBCXX_INSTALL_PREFIX}bin COMPONENT cxx) - endif() - - if (LIBCXX_INSTALL_STATIC_LIBRARY) - install(TARGETS cxx_static - ARCHIVE DESTINATION ${LIBCXX_INSTALL_PREFIX}${LIBCXX_INSTALL_LIBRARY_DIR} COMPONENT cxx - LIBRARY DESTINATION ${LIBCXX_INSTALL_PREFIX}${LIBCXX_INSTALL_LIBRARY_DIR} COMPONENT cxx - RUNTIME DESTINATION ${LIBCXX_INSTALL_PREFIX}bin COMPONENT cxx) - endif() - - if(LIBCXX_INSTALL_EXPERIMENTAL_LIBRARY) - install(TARGETS ${LIBCXX_INSTALL_TARGETS} ${experimental_lib} - LIBRARY DESTINATION ${LIBCXX_INSTALL_PREFIX}${LIBCXX_INSTALL_LIBRARY_DIR} COMPONENT cxx - ARCHIVE DESTINATION ${LIBCXX_INSTALL_PREFIX}${LIBCXX_INSTALL_LIBRARY_DIR} COMPONENT cxx - RUNTIME DESTINATION ${LIBCXX_INSTALL_PREFIX}bin COMPONENT cxx) - endif() - - # NOTE: This install command must go after the cxx install command otherwise - # it will not be executed after the library symlinks are installed. - if (LIBCXX_ENABLE_SHARED AND LIBCXX_ENABLE_ABI_LINKER_SCRIPT) - # Replace the libc++ filename with $<TARGET_LINKER_FILE:cxx> - # after we required CMake 3.0. - install(FILES "${LIBCXX_LIBRARY_DIR}/libc++${CMAKE_SHARED_LIBRARY_SUFFIX}" - DESTINATION ${LIBCXX_INSTALL_PREFIX}${LIBCXX_INSTALL_LIBRARY_DIR} - COMPONENT libcxx) - endif() -endif() - -if (NOT CMAKE_CONFIGURATION_TYPES AND (LIBCXX_INSTALL_LIBRARY OR - LIBCXX_INSTALL_HEADERS)) - if(LIBCXX_INSTALL_LIBRARY) - set(lib_install_target cxx) - endif() - if (LIBCXX_INSTALL_EXPERIMENTAL_LIBRARY) - set(experimental_lib_install_target cxx_experimental) - endif() - if(LIBCXX_INSTALL_HEADERS) - set(header_install_target install-cxx-headers) - endif() - add_custom_target(install-cxx - DEPENDS ${lib_install_target} - ${experimental_lib_install_target} - ${header_install_target} - COMMAND "${CMAKE_COMMAND}" - -DCMAKE_INSTALL_COMPONENT=cxx - -P "${LIBCXX_BINARY_DIR}/cmake_install.cmake") - add_custom_target(install-cxx-stripped - DEPENDS ${lib_install_target} - ${experimental_lib_install_target} - ${header_install_target} - COMMAND "${CMAKE_COMMAND}" - -DCMAKE_INSTALL_COMPONENT=cxx - -DCMAKE_INSTALL_DO_STRIP=1 - -P "${LIBCXX_BINARY_DIR}/cmake_install.cmake") - add_custom_target(install-libcxx DEPENDS install-cxx) -endif() diff --git a/lld/CMakeLists.txt b/lld/CMakeLists.txt deleted file mode 100644 index 641f71c114ae..000000000000 --- a/lld/CMakeLists.txt +++ /dev/null @@ -1,225 +0,0 @@ -# Check if lld is built as a standalone project. -if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) - project(lld) - cmake_minimum_required(VERSION 3.4.3) - - set(CMAKE_INCLUDE_CURRENT_DIR ON) - set(LLD_BUILT_STANDALONE TRUE) - - find_program(LLVM_CONFIG_PATH "llvm-config" DOC "Path to llvm-config binary") - if(NOT LLVM_CONFIG_PATH) - message(FATAL_ERROR "llvm-config not found: specify LLVM_CONFIG_PATH") - endif() - - execute_process(COMMAND "${LLVM_CONFIG_PATH}" - "--obj-root" - "--includedir" - "--cmakedir" - "--src-root" - RESULT_VARIABLE HAD_ERROR - OUTPUT_VARIABLE LLVM_CONFIG_OUTPUT - OUTPUT_STRIP_TRAILING_WHITESPACE) - if(HAD_ERROR) - message(FATAL_ERROR "llvm-config failed with status ${HAD_ERROR}") - endif() - - string(REGEX REPLACE "[ \t]*[\r\n]+[ \t]*" ";" LLVM_CONFIG_OUTPUT "${LLVM_CONFIG_OUTPUT}") - - list(GET LLVM_CONFIG_OUTPUT 0 OBJ_ROOT) - list(GET LLVM_CONFIG_OUTPUT 1 MAIN_INCLUDE_DIR) - list(GET LLVM_CONFIG_OUTPUT 2 LLVM_CMAKE_PATH) - list(GET LLVM_CONFIG_OUTPUT 3 MAIN_SRC_DIR) - - set(LLVM_OBJ_ROOT ${OBJ_ROOT} CACHE PATH "path to LLVM build tree") - set(LLVM_MAIN_INCLUDE_DIR ${MAIN_INCLUDE_DIR} CACHE PATH "path to llvm/include") - set(LLVM_MAIN_SRC_DIR ${MAIN_SRC_DIR} CACHE PATH "Path to LLVM source tree") - - file(TO_CMAKE_PATH ${LLVM_OBJ_ROOT} LLVM_BINARY_DIR) - - if(NOT EXISTS "${LLVM_CMAKE_PATH}/LLVMConfig.cmake") - message(FATAL_ERROR "LLVMConfig.cmake not found") - endif() - include("${LLVM_CMAKE_PATH}/LLVMConfig.cmake") - - list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_PATH}") - - set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}") - include_directories("${LLVM_BINARY_DIR}/include" ${LLVM_INCLUDE_DIRS}) - link_directories(${LLVM_LIBRARY_DIRS}) - - set(LLVM_LIBRARY_OUTPUT_INTDIR ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib${LLVM_LIBDIR_SUFFIX}) - set(LLVM_RUNTIME_OUTPUT_INTDIR ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin) - find_program(LLVM_TABLEGEN_EXE "llvm-tblgen" ${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH) - - include(AddLLVM) - include(TableGen) - include(HandleLLVMOptions) - - if(LLVM_INCLUDE_TESTS) - include(FindPythonInterp) - if(NOT PYTHONINTERP_FOUND) - message(FATAL_ERROR -"Unable to find Python interpreter, required for testing. - -Please install Python or specify the PYTHON_EXECUTABLE CMake variable.") - endif() - - if(${PYTHON_VERSION_STRING} VERSION_LESS 2.7) - message(FATAL_ERROR "Python 2.7 or newer is required") - endif() - - # Check prebuilt llvm/utils. - if(EXISTS ${LLVM_TOOLS_BINARY_DIR}/FileCheck${CMAKE_EXECUTABLE_SUFFIX} - AND EXISTS ${LLVM_TOOLS_BINARY_DIR}/not${CMAKE_EXECUTABLE_SUFFIX}) - set(LLVM_UTILS_PROVIDED ON) - endif() - - if(EXISTS ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py) - # Note: path not really used, except for checking if lit was found - set(LLVM_LIT ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py) - if(NOT LLVM_UTILS_PROVIDED) - add_subdirectory(${LLVM_MAIN_SRC_DIR}/utils/FileCheck utils/FileCheck) - add_subdirectory(${LLVM_MAIN_SRC_DIR}/utils/not utils/not) - set(LLVM_UTILS_PROVIDED ON) - set(LLD_TEST_DEPS FileCheck not) - endif() - set(UNITTEST_DIR ${LLVM_MAIN_SRC_DIR}/utils/unittest) - if(EXISTS ${UNITTEST_DIR}/googletest/include/gtest/gtest.h - AND NOT EXISTS ${LLVM_LIBRARY_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}gtest${CMAKE_STATIC_LIBRARY_SUFFIX} - AND EXISTS ${UNITTEST_DIR}/CMakeLists.txt) - add_subdirectory(${UNITTEST_DIR} utils/unittest) - endif() - else() - # Seek installed Lit. - find_program(LLVM_LIT - NAMES llvm-lit lit.py lit - PATHS "${LLVM_MAIN_SRC_DIR}/utils/lit" - DOC "Path to lit.py") - endif() - - if(LLVM_LIT) - # Define the default arguments to use with 'lit', and an option for the user - # to override. - set(LIT_ARGS_DEFAULT "-sv") - if (MSVC OR XCODE) - set(LIT_ARGS_DEFAULT "${LIT_ARGS_DEFAULT} --no-progress-bar") - endif() - set(LLVM_LIT_ARGS "${LIT_ARGS_DEFAULT}" CACHE STRING "Default options for lit") - - # On Win32 hosts, provide an option to specify the path to the GnuWin32 tools. - if(WIN32 AND NOT CYGWIN) - set(LLVM_LIT_TOOLS_DIR "" CACHE PATH "Path to GnuWin32 tools") - endif() - else() - set(LLVM_INCLUDE_TESTS OFF) - endif() - endif() -endif() - -set(LLD_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) -set(LLD_INCLUDE_DIR ${LLD_SOURCE_DIR}/include ) -set(LLD_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}) - -# Compute the LLD version from the LLVM version. -string(REGEX MATCH "[0-9]+\\.[0-9]+(\\.[0-9]+)?" LLD_VERSION - ${PACKAGE_VERSION}) -message(STATUS "LLD version: ${LLD_VERSION}") - -string(REGEX REPLACE "([0-9]+)\\.[0-9]+(\\.[0-9]+)?" "\\1" LLD_VERSION_MAJOR - ${LLD_VERSION}) -string(REGEX REPLACE "[0-9]+\\.([0-9]+)(\\.[0-9]+)?" "\\1" LLD_VERSION_MINOR - ${LLD_VERSION}) - -# Determine LLD revision and repository. -# TODO: Figure out a way to get the revision and the repository on windows. -if ( NOT CMAKE_SYSTEM_NAME MATCHES "Windows" ) - execute_process(COMMAND ${CMAKE_SOURCE_DIR}/utils/GetSourceVersion ${LLD_SOURCE_DIR} - OUTPUT_VARIABLE LLD_REVISION) - - execute_process(COMMAND ${CMAKE_SOURCE_DIR}/utils/GetRepositoryPath ${LLD_SOURCE_DIR} - OUTPUT_VARIABLE LLD_REPOSITORY) - if ( LLD_REPOSITORY ) - # Replace newline characters with spaces - string(REGEX REPLACE "(\r?\n)+" " " LLD_REPOSITORY ${LLD_REPOSITORY}) - # Remove leading spaces - STRING(REGEX REPLACE "^[ \t\r\n]+" "" LLD_REPOSITORY "${LLD_REPOSITORY}" ) - # Remove trailing spaces - string(REGEX REPLACE "(\ )+$" "" LLD_REPOSITORY ${LLD_REPOSITORY}) - endif() - - if ( LLD_REVISION ) - # Replace newline characters with spaces - string(REGEX REPLACE "(\r?\n)+" " " LLD_REVISION ${LLD_REVISION}) - # Remove leading spaces - STRING(REGEX REPLACE "^[ \t\r\n]+" "" LLD_REVISION "${LLD_REVISION}" ) - # Remove trailing spaces - string(REGEX REPLACE "(\ )+$" "" LLD_REVISION ${LLD_REVISION}) - endif() -endif () - -# Configure the Version.inc file. -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/include/lld/Common/Version.inc.in - ${CMAKE_CURRENT_BINARY_DIR}/include/lld/Common/Version.inc) - - -if (CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) - message(FATAL_ERROR "In-source builds are not allowed. CMake would overwrite " -"the makefiles distributed with LLVM. Please create a directory and run cmake " -"from there, passing the path to this source directory as the last argument. " -"This process created the file `CMakeCache.txt' and the directory " -"`CMakeFiles'. Please delete them.") -endif() - -list (APPEND CMAKE_MODULE_PATH "${LLD_SOURCE_DIR}/cmake/modules") - -include(AddLLD) - -option(LLD_USE_VTUNE - "Enable VTune user task tracking." - OFF) -if (LLD_USE_VTUNE) - find_package(VTune) - if (VTUNE_FOUND) - include_directories(${VTune_INCLUDE_DIRS}) - list(APPEND LLVM_COMMON_LIBS ${VTune_LIBRARIES}) - add_definitions(-DLLD_HAS_VTUNE) - endif() -endif() - -option(LLD_BUILD_TOOLS - "Build the lld tools. If OFF, just generate build targets." ON) - -if (MSVC) - add_definitions(-wd4530) # Suppress 'warning C4530: C++ exception handler used, but unwind semantics are not enabled.' - add_definitions(-wd4062) # Suppress 'warning C4062: enumerator X in switch of enum Y is not handled' from system header. -endif() - -include_directories(BEFORE - ${CMAKE_CURRENT_BINARY_DIR}/include - ${CMAKE_CURRENT_SOURCE_DIR}/include - ) - -if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY) - install(DIRECTORY include/ - DESTINATION include - FILES_MATCHING - PATTERN "*.h" - PATTERN ".svn" EXCLUDE - ) -endif() - -add_subdirectory(Common) -add_subdirectory(lib) -add_subdirectory(tools/lld) - -if (LLVM_INCLUDE_TESTS) - add_subdirectory(test) - add_subdirectory(unittests) -endif() - -add_subdirectory(docs) -add_subdirectory(COFF) -add_subdirectory(ELF) -add_subdirectory(MinGW) -add_subdirectory(wasm) diff --git a/lld/COFF/CMakeLists.txt b/lld/COFF/CMakeLists.txt deleted file mode 100644 index c7ef7c47fea1..000000000000 --- a/lld/COFF/CMakeLists.txt +++ /dev/null @@ -1,48 +0,0 @@ -set(LLVM_TARGET_DEFINITIONS Options.td) -tablegen(LLVM Options.inc -gen-opt-parser-defs) -add_public_tablegen_target(COFFOptionsTableGen) - -if(NOT LLD_BUILT_STANDALONE) - set(tablegen_deps intrinsics_gen) -endif() - -add_lld_library(lldCOFF - Chunks.cpp - DebugTypes.cpp - DLL.cpp - Driver.cpp - DriverUtils.cpp - ICF.cpp - InputFiles.cpp - LTO.cpp - MapFile.cpp - MarkLive.cpp - MinGW.cpp - PDB.cpp - SymbolTable.cpp - Symbols.cpp - Writer.cpp - - LINK_COMPONENTS - ${LLVM_TARGETS_TO_BUILD} - BinaryFormat - Core - DebugInfoCodeView - DebugInfoMSF - DebugInfoPDB - LibDriver - LTO - MC - Object - Option - Support - WindowsManifest - - LINK_LIBS - lldCommon - ${LLVM_PTHREAD_LIB} - - DEPENDS - COFFOptionsTableGen - ${tablegen_deps} - ) diff --git a/lld/Common/CMakeLists.txt b/lld/Common/CMakeLists.txt deleted file mode 100644 index 70849cc7b94b..000000000000 --- a/lld/Common/CMakeLists.txt +++ /dev/null @@ -1,60 +0,0 @@ -if(NOT LLD_BUILT_STANDALONE) - set(tablegen_deps intrinsics_gen) -endif() - -find_first_existing_vc_file("${LLVM_MAIN_SRC_DIR}" llvm_vc) -find_first_existing_vc_file("${LLD_SOURCE_DIR}" lld_vc) - -set(version_inc "${CMAKE_CURRENT_BINARY_DIR}/VCSVersion.inc") -set(generate_vcs_version_script "${LLVM_CMAKE_PATH}/GenerateVersionFromVCS.cmake") - -if(lld_vc) - set(lld_source_dir ${LLD_SOURCE_DIR}) -endif() - -add_custom_command(OUTPUT "${version_inc}" - DEPENDS "${lld_vc}" "${generate_vcs_version_script}" - COMMAND ${CMAKE_COMMAND} "-DNAMES=LLD" - "-DLLD_SOURCE_DIR=${LLD_SOURCE_DIR}" - "-DHEADER_FILE=${version_inc}" - -P "${generate_vcs_version_script}") - -# Mark the generated header as being generated. -set_source_files_properties("${version_inc}" - PROPERTIES GENERATED TRUE - HEADER_FILE_ONLY TRUE) - -set_property(SOURCE Version.cpp APPEND PROPERTY - COMPILE_DEFINITIONS "HAVE_VCS_VERSION_INC") - -add_lld_library(lldCommon - Args.cpp - ErrorHandler.cpp - Filesystem.cpp - Memory.cpp - Reproduce.cpp - Strings.cpp - TargetOptionsCommandFlags.cpp - Threads.cpp - Timer.cpp - VCSVersion.inc - Version.cpp - - ADDITIONAL_HEADER_DIRS - ${LLD_INCLUDE_DIR}/lld/Common - - LINK_COMPONENTS - Codegen - Core - Demangle - MC - Option - Support - Target - - LINK_LIBS - ${LLVM_PTHREAD_LIB} - - DEPENDS - ${tablegen_deps} - ) diff --git a/lld/ELF/CMakeLists.txt b/lld/ELF/CMakeLists.txt deleted file mode 100644 index 70578746483d..000000000000 --- a/lld/ELF/CMakeLists.txt +++ /dev/null @@ -1,67 +0,0 @@ -set(LLVM_TARGET_DEFINITIONS Options.td) -tablegen(LLVM Options.inc -gen-opt-parser-defs) -add_public_tablegen_target(ELFOptionsTableGen) - -if(NOT LLD_BUILT_STANDALONE) - set(tablegen_deps intrinsics_gen) -endif() - -add_lld_library(lldELF - AArch64ErrataFix.cpp - Arch/AArch64.cpp - Arch/AMDGPU.cpp - Arch/ARM.cpp - Arch/AVR.cpp - Arch/Hexagon.cpp - Arch/Mips.cpp - Arch/MipsArchTree.cpp - Arch/MSP430.cpp - Arch/PPC.cpp - Arch/PPC64.cpp - Arch/RISCV.cpp - Arch/SPARCV9.cpp - Arch/X86.cpp - Arch/X86_64.cpp - CallGraphSort.cpp - DWARF.cpp - Driver.cpp - DriverUtils.cpp - EhFrame.cpp - ICF.cpp - InputFiles.cpp - InputSection.cpp - LTO.cpp - LinkerScript.cpp - MapFile.cpp - MarkLive.cpp - OutputSections.cpp - Relocations.cpp - ScriptLexer.cpp - ScriptParser.cpp - SymbolTable.cpp - Symbols.cpp - SyntheticSections.cpp - Target.cpp - Thunks.cpp - Writer.cpp - - LINK_COMPONENTS - ${LLVM_TARGETS_TO_BUILD} - BinaryFormat - BitWriter - Core - DebugInfoDWARF - LTO - MC - Object - Option - Support - - LINK_LIBS - lldCommon - ${LLVM_PTHREAD_LIB} - - DEPENDS - ELFOptionsTableGen - ${tablegen_deps} - ) diff --git a/lld/docs/CMakeLists.txt b/lld/docs/CMakeLists.txt deleted file mode 100644 index 112ce35e8cf4..000000000000 --- a/lld/docs/CMakeLists.txt +++ /dev/null @@ -1,8 +0,0 @@ -if (LLVM_ENABLE_SPHINX) - include(AddSphinxTarget) - if (SPHINX_FOUND) - if (${SPHINX_OUTPUT_HTML}) - add_sphinx_target(html lld) - endif() - endif() -endif() diff --git a/lld/lib/CMakeLists.txt b/lld/lib/CMakeLists.txt deleted file mode 100644 index 8884efcfe9ba..000000000000 --- a/lld/lib/CMakeLists.txt +++ /dev/null @@ -1,3 +0,0 @@ -add_subdirectory(Core) -add_subdirectory(Driver) -add_subdirectory(ReaderWriter) diff --git a/lld/lib/Core/CMakeLists.txt b/lld/lib/Core/CMakeLists.txt deleted file mode 100644 index 2d4d9ded0886..000000000000 --- a/lld/lib/Core/CMakeLists.txt +++ /dev/null @@ -1,28 +0,0 @@ -if(NOT LLD_BUILT_STANDALONE) - set(tablegen_deps intrinsics_gen) -endif() - -add_lld_library(lldCore - DefinedAtom.cpp - Error.cpp - File.cpp - LinkingContext.cpp - Reader.cpp - Resolver.cpp - SymbolTable.cpp - Writer.cpp - - ADDITIONAL_HEADER_DIRS - ${LLD_INCLUDE_DIR}/lld/Core - - LINK_COMPONENTS - BinaryFormat - MC - Support - - LINK_LIBS - ${LLVM_PTHREAD_LIB} - - DEPENDS - ${tablegen_deps} - ) diff --git a/lld/lib/Driver/CMakeLists.txt b/lld/lib/Driver/CMakeLists.txt deleted file mode 100644 index ff67c282f47e..000000000000 --- a/lld/lib/Driver/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ -set(LLVM_TARGET_DEFINITIONS DarwinLdOptions.td) -tablegen(LLVM DarwinLdOptions.inc -gen-opt-parser-defs) -add_public_tablegen_target(DriverOptionsTableGen) - -add_lld_library(lldDriver - DarwinLdDriver.cpp - - ADDITIONAL_HEADER_DIRS - ${LLD_INCLUDE_DIR}/lld/Driver - - LINK_COMPONENTS - Option - Support - - LINK_LIBS - lldCommon - lldCore - lldMachO - lldReaderWriter - lldYAML - ) - -add_dependencies(lldDriver DriverOptionsTableGen) diff --git a/lld/lib/ReaderWriter/CMakeLists.txt b/lld/lib/ReaderWriter/CMakeLists.txt deleted file mode 100644 index bedb836d2c1e..000000000000 --- a/lld/lib/ReaderWriter/CMakeLists.txt +++ /dev/null @@ -1,20 +0,0 @@ -add_subdirectory(MachO) -add_subdirectory(YAML) - -if (MSVC) - add_definitions(-wd4062) # Suppress 'warning C4062: Enumerator has no associated handler in a switch statement.' -endif() - -add_lld_library(lldReaderWriter - FileArchive.cpp - - ADDITIONAL_HEADER_DIRS - ${LLD_INCLUDE_DIR}/lld/ReaderWriter - - LINK_COMPONENTS - Object - Support - - LINK_LIBS - lldCore - ) diff --git a/lld/lib/ReaderWriter/MachO/CMakeLists.txt b/lld/lib/ReaderWriter/MachO/CMakeLists.txt deleted file mode 100644 index 37d1de432c0f..000000000000 --- a/lld/lib/ReaderWriter/MachO/CMakeLists.txt +++ /dev/null @@ -1,35 +0,0 @@ -add_lld_library(lldMachO - ArchHandler.cpp - ArchHandler_arm.cpp - ArchHandler_arm64.cpp - ArchHandler_x86.cpp - ArchHandler_x86_64.cpp - CompactUnwindPass.cpp - GOTPass.cpp - LayoutPass.cpp - MachOLinkingContext.cpp - MachONormalizedFileBinaryReader.cpp - MachONormalizedFileBinaryWriter.cpp - MachONormalizedFileFromAtoms.cpp - MachONormalizedFileToAtoms.cpp - MachONormalizedFileYAML.cpp - ObjCPass.cpp - ShimPass.cpp - StubsPass.cpp - TLVPass.cpp - WriterMachO.cpp - - LINK_COMPONENTS - DebugInfoDWARF - Demangle - Object - Support - - LINK_LIBS - lldCommon - lldCore - lldYAML - ${LLVM_PTHREAD_LIB} - ) - -include_directories(.) diff --git a/lld/lib/ReaderWriter/YAML/CMakeLists.txt b/lld/lib/ReaderWriter/YAML/CMakeLists.txt deleted file mode 100644 index 0e63574a63d2..000000000000 --- a/lld/lib/ReaderWriter/YAML/CMakeLists.txt +++ /dev/null @@ -1,9 +0,0 @@ -add_lld_library(lldYAML - ReaderWriterYAML.cpp - - LINK_COMPONENTS - Support - - LINK_LIBS - lldCore - ) diff --git a/lld/tools/lld/CMakeLists.txt b/lld/tools/lld/CMakeLists.txt deleted file mode 100644 index a15e296e31df..000000000000 --- a/lld/tools/lld/CMakeLists.txt +++ /dev/null @@ -1,28 +0,0 @@ -set(LLVM_LINK_COMPONENTS - Support - ) - -add_lld_tool(lld - lld.cpp - ) - -target_link_libraries(lld - PRIVATE - lldCommon - lldCOFF - lldDriver - lldELF - lldMinGW - lldWasm - ) - -install(TARGETS lld - RUNTIME DESTINATION bin) - -if(NOT LLD_SYMLINKS_TO_CREATE) - set(LLD_SYMLINKS_TO_CREATE lld-link ld.lld ld64.lld wasm-ld) -endif() - -foreach(link ${LLD_SYMLINKS_TO_CREATE}) - add_lld_symlink(${link} lld) -endforeach() |