Skip to content

Commit 5c4e91e

Browse files
authored
Get the triple from the JIT to avoid differences in handling (#2591)
1 parent f6a7ade commit 5c4e91e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/orcv2.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ function setup_globals()
9393
optlevel = LLVM.API.LLVMCodeGenLevelAggressive
9494
end
9595

96-
tempTM = LLVM.JITTargetMachine(LLVM.triple(), cpu_name(), cpu_features(); optlevel)
96+
lljit = JuliaOJIT()
97+
98+
tempTM = LLVM.JITTargetMachine(LLVM.triple(lljit), cpu_name(), cpu_features(); optlevel)
9799
LLVM.asm_verbosity!(tempTM, true)
98100
tm[] = tempTM
99101

100-
lljit = JuliaOJIT()
101-
102102
jd_main = JITDylib(lljit)
103103

104104
prefix = LLVM.get_prefix(lljit)

0 commit comments

Comments
 (0)