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 )
14
15 if (EMSCRIPTEN AND "lld" IN_LIST LLVM_ENABLE_PROJECTS)
16 set(WASM_SRC Wasm.cpp)
17 set(WASM_LINK lldWasm)
18 set(COMMON_LINK lldCommon)
19 endif()
20
21 add_clang_library(clangInterpreter
22 DeviceOffload.cpp
23 CodeCompletion.cpp
24 IncrementalExecutor.cpp
25 IncrementalParser.cpp
26 Interpreter.cpp
27 InterpreterUtils.cpp
28 Value.cpp
29 ${WASM_SRC}
30 PARTIAL_SOURCES_INTENDED
31
32 DEPENDS
33 intrinsics_gen
34 ClangDriverOptions
35
36 LINK_LIBS
37 clangAST
38 clangAnalysis
39 clangBasic
40 clangCodeGen
41 clangDriver
42 clangFrontend
43 clangFrontendTool
44 clangLex
45 clangParse
46 clangSema
47 clangSerialization
48 ${WASM_LINK}
49 ${COMMON_LINK}
50 )
51
52 if ((MINGW OR CYGWIN) AND BUILD_SHARED_LIBS)
53 # The DLLs are supposed to export all symbols (except for ones that are
54 # explicitly hidden). Normally, this is what happens anyway, but if there
55 # are symbols that are marked explicitly as dllexport, we'd only export them
56 # and nothing else. The Interpreter contains a few cases of such dllexports
57 # (for symbols that need to be exported even from standalone exe files);
58 # therefore, add --export-all-symbols to make sure we export all symbols
59 # despite potential dllexports.
60 target_link_options(clangInterpreter PRIVATE LINKER:--export-all-symbols)
61 endif()