-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
upstreamThe issue is with an upstream dependency, e.g. LLVMThe issue is with an upstream dependency, e.g. LLVM
Description
Eventually, we may need/want to switch to MCJIT for various reasons. This patch is all that appears to be needed (on Linux):
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 5204cfd..42864c3 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -3409,6 +3409,7 @@ extern "C" void jl_init_codegen(void)
#endif
jl_ExecutionEngine = EngineBuilder(jl_Module)
.setEngineKind(EngineKind::JIT)
+ .setUseMCJIT(true)
.setTargetOptions(options)
.create();
#endif // LLVM VERSION
Unfortunately, it doesn't seem to run on Apple yet?
$ ./julia
LLVM ERROR: Target does not support MC emission!
$ uname
Darwin
Metadata
Metadata
Assignees
Labels
upstreamThe issue is with an upstream dependency, e.g. LLVMThe issue is with an upstream dependency, e.g. LLVM