Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix undefined SnoopPrecompile #287

Merged
merged 1 commit into from
Aug 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SnoopPrecompile/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SnoopPrecompile"
uuid = "66db9d55-30c0-4569-8b51-7e840670fc0c"
authors = ["Tim Holy <[email protected]> and contributors"]
version = "1.0.0"
version = "1.0.1"

[compat]
julia = "1"
Expand Down
6 changes: 3 additions & 3 deletions SnoopPrecompile/src/SnoopPrecompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ macro precompile_all_calls(ex::Expr)
Core.Compiler.__set_measure_typeinf(false)
Core.Compiler.Timings.close_current_timer()
end
SnoopPrecompile.precompile_roots(Core.Compiler.Timings._timings[1].children)
$SnoopPrecompile.precompile_roots(Core.Compiler.Timings._timings[1].children)
end
end
return esc(quote
if ccall(:jl_generating_output, Cint, ()) == 1 || SnoopPrecompile.verbose[]
if ccall(:jl_generating_output, Cint, ()) == 1 || $SnoopPrecompile.verbose[]
$ex
end
end)
Expand Down Expand Up @@ -103,7 +103,7 @@ to your package).
macro precompile_setup(ex::Expr)
return esc(quote
# let
if ccall(:jl_generating_output, Cint, ()) == 1 || SnoopPrecompile.verbose[]
if ccall(:jl_generating_output, Cint, ()) == 1 || $SnoopPrecompile.verbose[]
$ex
end
# end
Expand Down
2 changes: 1 addition & 1 deletion SnoopPrecompile/test/SnoopPC_A/src/SnoopPC_A.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module SnoopPC_A

using SnoopPrecompile
using SnoopPrecompile: @precompile_setup, @precompile_all_calls

struct MyType
x::Int
Expand Down