Skip to content

Commit e93f0e2

Browse files
author
Rik Huijzer
authored
Improve macro hygiene (#9)
1 parent 9090881 commit e93f0e2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PrecompileTools"
22
uuid = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
33
authors = ["Tim Holy <[email protected]>", "t-bltg <[email protected]>", "and contributors"]
4-
version = "1.0.0"
4+
version = "1.0.1"
55

66
[deps]
77
Preferences = "21216c6a-2e73-6563-6e65-726566657250"

src/PrecompileTools.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ macro compile_workload(ex::Expr)
5050
local iscompiling = if Base.VERSION < v"1.6"
5151
:(ccall(:jl_generating_output, Cint, ()) == 1)
5252
else
53-
:((ccall(:jl_generating_output, Cint, ()) == 1 && PrecompileTools.@load_preference("precompile_workload", true)))
53+
:((ccall(:jl_generating_output, Cint, ()) == 1 && $PrecompileTools.@load_preference("precompile_workload", true)))
5454
end
5555
if have_force_compile
5656
ex = quote
@@ -112,7 +112,7 @@ macro setup_workload(ex::Expr)
112112
local iscompiling = if Base.VERSION < v"1.6"
113113
:(ccall(:jl_generating_output, Cint, ()) == 1)
114114
else
115-
:((ccall(:jl_generating_output, Cint, ()) == 1 && PrecompileTools.@load_preference("precompile_workload", true)))
115+
:((ccall(:jl_generating_output, Cint, ()) == 1 && $PrecompileTools.@load_preference("precompile_workload", true)))
116116
end
117117
return esc(quote
118118
let

test/PC_A/src/PC_A.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module PC_A
22

3-
using PrecompileTools
3+
using PrecompileTools: @setup_workload, @compile_workload
44

55
struct MyType
66
x::Int

0 commit comments

Comments
 (0)