Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Fix isolated dlopen
Browse files Browse the repository at this point in the history
In `locate`, when launching an external Julia to test whether dlopen work
on a library, pass `--startup-file=no` to the subprocess to avoid any issues
with commands in a user's startup.jl file.

Fixes #194

On master, this was already fixed by PR #189
  • Loading branch information
fingolfin committed May 22, 2020
1 parent 1b8031a commit 3847706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Products.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function locate(lp::LibraryProduct; verbose::Bool = false,
if isolate
# Isolated dlopen is a lot slower, but safer
dl_esc_path = replace(dl_path, "\\"=>"\\\\")
if success(`$(Base.julia_cmd()) -e "import Libdl; Libdl.dlopen(\"$(dl_esc_path)\")"`)
if success(`$(Base.julia_cmd()) --startup-file=no -e "import Libdl; Libdl.dlopen(\"$(dl_esc_path)\")"`)
return dl_path
end
else
Expand Down

0 comments on commit 3847706

Please # to comment.