File tree Expand file tree Collapse file tree 1 file changed +41
-29
lines changed
clang/unittests/Interpreter Expand file tree Collapse file tree 1 file changed +41
-29
lines changed Original file line number Diff line number Diff line change 1
1
if (EMSCRIPTEN )
2
+ set (LLVM_COMPONENTS_TO_LINK
3
+ ""
4
+ )
5
+ set (LLVM_LIBS_TO_LINK
6
+ ""
7
+ )
8
+ set (CLANG_LIBS_TO_LINK
9
+ clangInterpreter
10
+ )
11
+ else ()
12
+ set (LLVM_COMPONENTS_TO_LINK
13
+ ${LLVM_TARGETS_TO_BUILD}
14
+ Core
15
+ MC
16
+ OrcJIT
17
+ Support
18
+ TargetParser
19
+ )
20
+ set (LLVM_LIBS_TO_LINK
21
+ LLVMTestingSupport
22
+ )
23
+ set (CLANG_LIBS_TO_LINK
24
+ clangAST
25
+ clangBasic
26
+ clangInterpreter
27
+ clangFrontend
28
+ clangSema
29
+ )
30
+ endif ()
31
+
2
32
add_distinct_clang_unittest (ClangReplInterpreterTests
3
33
IncrementalCompilerBuilderTest.cpp
4
34
IncrementalProcessingTest.cpp
5
35
InterpreterTest.cpp
6
36
InterpreterExtensionsTest.cpp
7
37
CodeCompletionTest.cpp
8
38
39
+ EXPORT_SYMBOLS
40
+
9
41
CLANG_LIBS
10
- clangInterpreter
42
+ ${CLANG_LIBS_TO_LINK}
43
+
44
+ LINK_LIBS
45
+ ${LLVM_LIBS_TO_LINK}
46
+
47
+ LLVM_COMPONENTS
48
+ ${LLVM_COMPONENTS_TO_LINK}
11
49
)
50
+
51
+ if (EMSCRIPTEN )
12
52
target_link_options (ClangReplInterpreterTests
13
53
PUBLIC "SHELL: -s MAIN_MODULE=1"
14
54
PUBLIC "SHELL: -s ALLOW_MEMORY_GROWTH=1"
@@ -19,34 +59,6 @@ target_link_options(ClangReplInterpreterTests
19
59
set_target_properties (ClangReplInterpreterTests PROPERTIES
20
60
SUFFIX ".html"
21
61
)
22
- else ()
23
- add_distinct_clang_unittest (ClangReplInterpreterTests
24
- IncrementalCompilerBuilderTest.cpp
25
- IncrementalProcessingTest.cpp
26
- InterpreterTest.cpp
27
- InterpreterExtensionsTest.cpp
28
- CodeCompletionTest.cpp
29
-
30
- EXPORT_SYMBOLS
31
-
32
- CLANG_LIBS
33
- clangAST
34
- clangBasic
35
- clangInterpreter
36
- clangFrontend
37
- clangSema
38
-
39
- LINK_LIBS
40
- LLVMTestingSupport
41
-
42
- LLVM_COMPONENTS
43
- ${LLVM_TARGETS_TO_BUILD}
44
- Core
45
- MC
46
- OrcJIT
47
- Support
48
- TargetParser
49
- )
50
62
endif ()
51
63
52
64
# Exceptions on Windows are not yet supported.
You can’t perform that action at this time.
0 commit comments