xref: /openbsd/gnu/llvm/lld/COFF/CMakeLists.txt (revision 771fbea0)
1set(LLVM_TARGET_DEFINITIONS Options.td)
2tablegen(LLVM Options.inc -gen-opt-parser-defs)
3add_public_tablegen_target(COFFOptionsTableGen)
4
5if(NOT LLD_BUILT_STANDALONE)
6  set(tablegen_deps intrinsics_gen)
7endif()
8
9add_lld_library(lldCOFF
10  Chunks.cpp
11  DebugTypes.cpp
12  DLL.cpp
13  Driver.cpp
14  DriverUtils.cpp
15  ICF.cpp
16  InputFiles.cpp
17  LLDMapFile.cpp
18  LTO.cpp
19  MapFile.cpp
20  MarkLive.cpp
21  MinGW.cpp
22  PDB.cpp
23  SymbolTable.cpp
24  Symbols.cpp
25  Writer.cpp
26
27  LINK_COMPONENTS
28  ${LLVM_TARGETS_TO_BUILD}
29  BinaryFormat
30  Core
31  DebugInfoCodeView
32  DebugInfoDWARF
33  DebugInfoMSF
34  DebugInfoPDB
35  Demangle
36  LibDriver
37  LTO
38  MC
39  Object
40  Option
41  Passes
42  Support
43  WindowsManifest
44
45  LINK_LIBS
46  lldCommon
47  ${LLVM_PTHREAD_LIB}
48
49  DEPENDS
50  COFFOptionsTableGen
51  ${tablegen_deps}
52  )
53