================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits