Debian Codegraph @

clang/lib/Interpreter/CMakeLists.txt

raw
1 set(LLVM_LINK_COMPONENTS
2 core
3 native
4 MC
5 Option
6 OrcJit
7 OrcDebugging
8 OrcShared
9 OrcTargetProcess
10 Support
11 Target
12 TargetParser
13 TransformUtils
14 )
15
16 if (EMSCRIPTEN AND "lld" IN_LIST LLVM_ENABLE_PROJECTS)
17 set(WASM_SRC Wasm.cpp)
18 set(WASM_LINK lldWasm)
19 set(COMMON_LINK lldCommon)
20 endif()
21
22 add_clang_library(clangInterpreter
23 DeviceOffload.cpp
24 CodeCompletion.cpp
25 IncrementalAction.cpp
26 IncrementalExecutor.cpp
27 OrcIncrementalExecutor.cpp
28 IncrementalParser.cpp
29 Interpreter.cpp
30 InterpreterValuePrinter.cpp
31 InterpreterUtils.cpp
32 Value.cpp
33 InterpreterValuePrinter.cpp
34 ${WASM_SRC}
35 PARTIAL_SOURCES_INTENDED
36
37 DEPENDS
38 intrinsics_gen
39 ClangDriverOptions
40
41 LINK_LIBS
42 clangAST
43 clangAnalysis
44 clangBasic
45 clangCodeGen
46 clangDriver
47 clangFrontend
48 clangFrontendTool
49 clangLex
50 clangOptions
51 clangParse
52 clangSema
53 clangSerialization
54 ${WASM_LINK}
55 ${COMMON_LINK}
56 )
57
58 if ((MINGW OR CYGWIN) AND BUILD_SHARED_LIBS)
59 # The DLLs are supposed to export all symbols (except for ones that are
60 # explicitly hidden). Normally, this is what happens anyway, but if there
61 # are symbols that are marked explicitly as dllexport, we'd only export them
62 # and nothing else. The Interpreter contains a few cases of such dllexports
63 # (for symbols that need to be exported even from standalone exe files);
64 # therefore, add --export-all-symbols to make sure we export all symbols
65 # despite potential dllexports.
66 target_link_options(clangInterpreter PRIVATE LINKER:--export-all-symbols)
67 endif()