File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
clang/unittests/Interpreter Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,25 @@ set(CLANG_LIBS_TO_LINK
29
29
)
30
30
endif ()
31
31
32
- add_distinct_clang_unittest ( ClangReplInterpreterTests
32
+ set ( CLANG_REPL_TEST_SOURCES
33
33
IncrementalCompilerBuilderTest.cpp
34
34
IncrementalProcessingTest.cpp
35
35
InterpreterTest.cpp
36
36
InterpreterExtensionsTest.cpp
37
37
CodeCompletionTest.cpp
38
+ )
39
+
40
+ if (TARGET compiler-rt )
41
+ list (APPEND CLANG_REPL_TEST_SOURCES
42
+ OutOfProcessInterpreterTests.cpp
43
+ )
44
+ message (STATUS "Compiler-RT found, enabling out of process JIT tests" )
45
+ endif ()
46
+
47
+ add_distinct_clang_unittest (ClangReplInterpreterTests
48
+ ${CLANG_REPL_TEST_SOURCES}
38
49
50
+ PARTIAL_SOURCES_INTENDED
39
51
EXPORT_SYMBOLS
40
52
41
53
CLANG_LIBS
@@ -59,6 +71,12 @@ target_link_options(ClangReplInterpreterTests
59
71
set_target_properties (ClangReplInterpreterTests PROPERTIES
60
72
SUFFIX ".html"
61
73
)
74
+ if (TARGET compiler-rt )
75
+ add_dependencies (ClangReplInterpreterTests
76
+ llvm-jitlink-executor
77
+ compiler-rt
78
+ )
79
+ message (STATUS "Adding dependency on compiler-rt for out of process JIT tests" )
62
80
endif ()
63
81
64
82
# Exceptions on Windows are not yet supported.
You can’t perform that action at this time.
0 commit comments