Skip to content

Commit

Permalink
Fix build: [clang-repl] Even more tests create the Interpreter and mu…
Browse files Browse the repository at this point in the history
…st check host JIT support (#84758)

fea7399 had removed the unused function that was still there when I tested.
  • Loading branch information
weliveindetail committed May 28, 2024
1 parent bbca20f commit df542e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions clang/unittests/Interpreter/IncrementalProcessingTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ const Function *getGlobalInit(llvm::Module *M) {
return nullptr;
}

static bool HostSupportsJit() {
auto J = llvm::orc::LLJITBuilder().create();
if (J)
return true;
LLVMConsumeError(llvm::wrap(J.takeError()));
return false;
}

#ifdef CLANG_INTERPRETER_PLATFORM_CANNOT_CREATE_LLJIT
TEST(IncrementalProcessing, DISABLED_EmitCXXGlobalInitFunc) {
#else
Expand Down

0 comments on commit df542e1

Please sign in to comment.