brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1017 B · de06271 Raw
33 lines · plain
1set(LLVM_COMMON_DEPENDS_OLD ${LLVM_COMMON_DEPENDS})2 3# Drop clang-tablegen-targets from LLVM_COMMON_DEPENDS.4# so that we could use clangSupport within clang-tblgen and other clang5# component.6list(REMOVE_ITEM LLVM_COMMON_DEPENDS clang-tablegen-targets)7 8set(LLVM_LINK_COMPONENTS9  Support10  )11 12set(clangSupport_sources13  RISCVVIntrinsicUtils.cpp14  )15 16add_clang_library(clangSupport ${clangSupport_sources})17 18if (TARGET obj.clangSupport)19  add_library(clangSupport_tablegen ALIAS obj.clangSupport)20elseif (NOT LLVM_LINK_LLVM_DYLIB)21  add_library(clangSupport_tablegen ALIAS clangSupport)22else()23  # Build a version of the support library that does not link against24  # libLLVM-*.so, to be used by clang-tblgen. This is so clang-tblgen doesn't25  # link against libLLVMSupport twice (once statically and once via26  # libLLVM-*.so).27  add_llvm_library(clangSupport_tablegen28    BUILDTREE_ONLY STATIC DISABLE_LLVM_LINK_LLVM_DYLIB29    ${clangSupport_sources})30endif()31 32set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS_OLD})33