diff options
author | Lang Hames <lhames@gmail.com> | 2023-08-24 08:20:07 -0700 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2023-08-24 08:20:07 -0700 |
commit | 86258bda2016323d32efbe6a298654cd77cde644 (patch) | |
tree | 2dc3fe1b053728232fd7c6e6c049e58b51c05f12 /clang/unittests/Interpreter/InterpreterTest.cpp | |
parent | dbccf3c6f13d2afeecec77136460c5e359164eae (diff) | |
download | llvm-86258bda2016323d32efbe6a298654cd77cde644.zip llvm-86258bda2016323d32efbe6a298654cd77cde644.tar.gz llvm-86258bda2016323d32efbe6a298654cd77cde644.tar.bz2 |
[ORC][clang-repl] Fix another unit test after 122ebe3b500.
Same fix as 8a62d6ba7e: We need to make sure that the supports-JIT check uses
the same JIT config that will be used in the actual test.
Diffstat (limited to 'clang/unittests/Interpreter/InterpreterTest.cpp')
-rw-r--r-- | clang/unittests/Interpreter/InterpreterTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/unittests/Interpreter/InterpreterTest.cpp b/clang/unittests/Interpreter/InterpreterTest.cpp index 338003c..1800bff 100644 --- a/clang/unittests/Interpreter/InterpreterTest.cpp +++ b/clang/unittests/Interpreter/InterpreterTest.cpp @@ -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())); |