@@ -400,9 +400,21 @@ function compile_method_instance(@nospecialize(job::CompilerJob),
400
400
Metadata (ConstantInt (DEBUG_METADATA_VERSION (); ctx= unwrap_context (ctx)))
401
401
402
402
ts_mod = ThreadSafeModule (mod; ctx)
403
- ccall (:jl_create_native , Ptr{Cvoid},
404
- (Vector{MethodInstance}, LLVM. API. LLVMOrcThreadSafeModuleRef, Ptr{Base. CodegenParams}, Cint),
405
- [method_instance], ts_mod, Ref (params), #= extern policy=# 1 )
403
+ # 1.9.0-alpha1.55 added external_linkage
404
+ # 1.9.0-alpha1.33 added imaging_mode
405
+ # 1.9.0-beta4.23 added world
406
+ if VERSION >= v " 1.9.0-beta4.23"
407
+ ccall (:jl_create_native , Ptr{Cvoid},
408
+ (Vector{MethodInstance}, LLVM. API. LLVMOrcThreadSafeModuleRef, Ptr{Base. CodegenParams},
409
+ Cint, Cint, Cint, Csize_t),
410
+ [method_instance], ts_mod, Ref (params),
411
+ #= extern policy=# 1 , #= imaging mode=# 0 , #= external linkage=# 0 ,
412
+ Base. get_world_counter ()) # TODO : Fixme
413
+ else
414
+ ccall (:jl_create_native , Ptr{Cvoid},
415
+ (Vector{MethodInstance}, LLVM. API. LLVMOrcThreadSafeModuleRef, Ptr{Base. CodegenParams}, Cint),
416
+ [method_instance], ts_mod, Ref (params), #= extern policy=# 1 )
417
+ end
406
418
elseif VERSION >= v " 1.9.0-DEV.115"
407
419
ccall (:jl_create_native , Ptr{Cvoid},
408
420
(Vector{MethodInstance}, LLVM. API. LLVMContextRef, Ptr{Base. CodegenParams}, Cint),
0 commit comments