25 lines · plain
1# The interpreter can throw an exception from user input. The test binary needs2# to be compiled with exception support to catch the thrown exception.3set(LLVM_REQUIRES_EH ON)4set(LLVM_REQUIRES_RTTI ON)5 6add_distinct_clang_unittest(ClangReplInterpreterExceptionTests7 InterpreterExceptionTest.cpp8 EXPORT_SYMBOLS9 10 CLANG_LIBS11 clangAST12 clangBasic13 clangInterpreter14 clangFrontend15 16 LLVM_COMPONENTS17 ${LLVM_TARGETS_TO_BUILD}18 Core19 OrcJIT20 Support21 )22 23llvm_update_compile_flags(ClangReplInterpreterExceptionTests)24add_dependencies(ClangReplInterpreterExceptionTests clang-resource-headers)25