Skip to content

Commit 6818678

Browse files
authored
Use active project for snoopl (#341)
It's common to use projects and load libraries not in the base environment, or possibly ones with different versions.
1 parent 2cf5ce1 commit 6818678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SnoopCompileCore/src/snoopl.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function snoopl(flags, func_file, llvm_file, commands)
3232
Core.eval(Main, deserialize(stdin))
3333
end
3434
"""
35-
process = open(`$(Base.julia_cmd()) $flags --eval $code_object`, stdout, write=true)
35+
process = open(`$(Base.julia_cmd()) $flags --eval $code_object --project=$(Base.active_project())`, stdout, write=true)
3636
serialize(process, quote
3737
let func_io = open($func_file, "w"), llvm_io = open($llvm_file, "w")
3838
ccall(:jl_dump_emitted_mi_name, Nothing, (Ptr{Nothing},), func_io.handle)

0 commit comments

Comments
 (0)