Skip to content

Commit df542e1

Browse files
Fix build: [clang-repl] Even more tests create the Interpreter and must check host JIT support (#84758)
fea7399 had removed the unused function that was still there when I tested.
1 parent bbca20f commit df542e1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

clang/unittests/Interpreter/IncrementalProcessingTest.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ const Function *getGlobalInit(llvm::Module *M) {
5656
return nullptr;
5757
}
5858

59+
static bool HostSupportsJit() {
60+
auto J = llvm::orc::LLJITBuilder().create();
61+
if (J)
62+
return true;
63+
LLVMConsumeError(llvm::wrap(J.takeError()));
64+
return false;
65+
}
66+
5967
#ifdef CLANG_INTERPRETER_PLATFORM_CANNOT_CREATE_LLJIT
6068
TEST(IncrementalProcessing, DISABLED_EmitCXXGlobalInitFunc) {
6169
#else

0 commit comments

Comments
 (0)