Skip to content

Commit

Permalink
[ORC][clang-repl] Fix another unit test after 122ebe3.
Browse files Browse the repository at this point in the history
Same fix as 8a62d6b: We need to make sure that the supports-JIT check uses
the same JIT config that will be used in the actual test.
  • Loading branch information
lhames committed Aug 24, 2023
1 parent dbccf3c commit 86258bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clang/unittests/Interpreter/InterpreterTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ static std::string MangleName(NamedDecl *ND) {
}

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

0 comments on commit 86258bd

Please sign in to comment.