[clang] [clang-repl] Set up native platform support if ORC Runtime available (PR #217988)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 25 04:10:14 PDT 2026
================
@@ -413,6 +413,16 @@ IncrementalExecutorBuilder::create(llvm::orc::ThreadSafeContext &TSC,
if (!JB)
return JB.takeError();
JITBuilder = std::move(*JB);
+ if (!OrcRuntimePath.empty()) {
+ JITBuilder->setPlatformSetUp(
+ llvm::orc::ExecutorNativePlatform(OrcRuntimePath));
+ } else {
+ auto Err = llvm::make_error<llvm::StringError>(
+ "OrcRuntime not found, running JIT without native platform support "
+ "and some features may not work.",
+ std::error_code());
+ llvm::logAllUnhandledErrors(std::move(Err), llvm::errs(), "warning: ");
----------------
khanxmetu wrote:
not sure if this needs to be a user-level warning or a `LLVM_DEBUG` log
https://github.com/llvm/llvm-project/pull/217988
More information about the cfe-commits
mailing list