Skip to content

Commit 2de06f4

Browse files
committed
fix generate_shlib_fptr
1 parent b5e123a commit 2de06f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/StaticCompiler.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ end
162162
function generate_shlib_fptr(f, tt, path::String=tempname(), name = GPUCompiler.safe_name(repr(f)); temp::Bool=true, kwargs...)
163163
generate_shlib(f, tt, path, name; kwargs...)
164164
lib_path = joinpath(abspath(path), "obj.$(Libdl.dlext)")
165-
ptr = Libdl.dlopen("$(abspath(path)).$(Libdl.dlext)", Libdl.RTLD_LOCAL)
165+
ptr = Libdl.dlopen(lib_path, Libdl.RTLD_LOCAL)
166166
fptr = Libdl.dlsym(ptr, "julia_$name")
167167
@assert fptr != C_NULL
168168
if temp

0 commit comments

Comments
 (0)