1 set(LLVM_LINK_COMPONENTS
2 ${LLVM_TARGETS_TO_BUILD}
10 add_clang_unittest(ClangReplInterpreterTests
11 IncrementalCompilerBuilderTest.cpp
12 IncrementalProcessingTest.cpp
14 InterpreterExtensionsTest.cpp
15 CodeCompletionTest.cpp
20 target_link_libraries(ClangReplInterpreterTests PUBLIC LLVMTestingSupport)
22 clang_target_link_libraries(ClangReplInterpreterTests PRIVATE
30 # Exceptions on Windows are not yet supported.
32 add_subdirectory(ExceptionTests)
36 set_target_properties(ClangReplInterpreterTests PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS 1)
39 set(ClangReplInterpreterTests_exports ${ClangReplInterpreterTests_exports} ??_7type_info@@6B@
40 ?__type_info_root_node@@3U__type_info_node@@A
41 ?nothrow@std@@3Unothrow_t@1@B
44 # Compiler added symbols for static variables. NOT for VStudio < 2015
45 set(ClangReplInterpreterTests_exports ${ClangReplInterpreterTests_exports} _Init_thread_abort _Init_thread_epoch
46 _Init_thread_footer _Init_thread_header _tls_index
49 if(CMAKE_SIZEOF_VOID_P EQUAL 8)
50 # new/delete variants needed when linking to static msvc runtime (esp. Debug)
51 set(ClangReplInterpreterTests_exports ${ClangReplInterpreterTests_exports}
59 set(ClangReplInterpreterTests_exports ${ClangReplInterpreterTests_exports}
69 # List to '/EXPORT:sym0 /EXPORT:sym1 /EXPORT:sym2 ...'
70 list(TRANSFORM ClangReplInterpreterTests_exports PREPEND "LINKER:/EXPORT:")
71 set_property(TARGET ClangReplInterpreterTests APPEND PROPERTY LINK_OPTIONS ${ClangReplInterpreterTests_exports})