1# The interpreter can throw an exception from user input. The test binary needs 2# to be compiled with exception support to catch the thrown exception. 3set(LLVM_REQUIRES_EH ON) 4set(LLVM_REQUIRES_RTTI ON) 5 6set(LLVM_LINK_COMPONENTS 7 ${LLVM_TARGETS_TO_BUILD} 8 Core 9 OrcJIT 10 Support 11 ) 12 13add_clang_unittest(ClangReplInterpreterExceptionTests 14 InterpreterExceptionTest.cpp 15 16 EXPORT_SYMBOLS 17 ) 18 19llvm_update_compile_flags(ClangReplInterpreterExceptionTests) 20target_link_libraries(ClangReplInterpreterExceptionTests PUBLIC 21 clangAST 22 clangBasic 23 clangInterpreter 24 clangFrontend 25 ) 26add_dependencies(ClangReplInterpreterExceptionTests clang-resource-headers) 27