Skip to content

Commit 892d105

Browse files
authored
Merge pull request #166 from aminya/SnoopCompile_AutoPR [skip ci]
[AUTO] Update precompiles
2 parents aab39e5 + 760b079 commit 892d105

File tree

5 files changed

+208
-29
lines changed

5 files changed

+208
-29
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,33 @@
1+
# Use
2+
# @warnpcfail precompile(args...)
3+
# if you want to be warned when a precompile directive fails
4+
macro warnpcfail(ex::Expr)
5+
modl = __module__
6+
file = __source__.file === nothing ? "?" : String(__source__.file)
7+
line = __source__.line
8+
quote
9+
$(esc(ex)) || @warn """precompile directive
10+
$($(Expr(:quote, ex)))
11+
failed. Please report an issue in $($modl) (after checking for duplicates) or remove this directive.""" _file=$file _line=$line
12+
end
13+
end
14+
15+
116
function _precompile_()
217
ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
3-
Base.precompile(Tuple{Core.kwftype(typeof(AcuteML.render2file)),NamedTuple{(:id, :age, :field, :GPA, :courses),Tuple{Int64,Int64,String,Float64,Array{String,1}}},typeof(render2file),String,Bool})
4-
Base.precompile(Tuple{typeof(AcuteML.aml_create),Expr,Array{Union{Expr, Symbol},1},Array{Any,1},Array{Union{Expr, Symbol, Type},1},Array{Union{Expr, Symbol},1},Array{Union{Missing, String},1},Array{Union{Missing, Function, Symbol},1},Array{Union{Missing, Type},1},String,Type{T} where T,Array{Union{Missing, Function, Symbol},0},Bool,Array{Union{Nothing, Expr},1},Array{Union{Nothing, Expr},1},Array{Union{Nothing, Expr},1},Expr})
5-
Base.precompile(Tuple{typeof(AcuteML.aml_create),Expr,Array{Union{Expr, Symbol},1},Array{Any,1},Array{Union{Expr, Symbol, Type},1},Array{Union{Expr, Symbol},1},Array{Union{Missing, String},1},Array{Union{Missing, Function, Symbol},1},Array{Union{Missing, Type},1},String,Type{T} where T,Array{Union{Missing, Function, Symbol},0},Bool,Array{Union{Nothing, Expr},1},Array{Union{Nothing, Expr},1},Array{Union{Nothing, Expr},1},Symbol})
6-
Base.precompile(Tuple{typeof(AcuteML.aml_parse),Expr})
7-
Base.precompile(Tuple{typeof(AcuteML.get_struct_xmlcreator),Expr,Array{Any,1},Array{Union{Expr, Symbol},1},Nothing,Expr,Array{Expr,1},Array{Expr,1},Nothing})
8-
Base.precompile(Tuple{typeof(AcuteML.multiString),Array{String,1}})
9-
Base.precompile(Tuple{typeof(addnode!),Node,String,Array{Any,1},Type{AbsNormal}})
18+
Base.precompile(Tuple{Core.kwftype(typeof(render2file)),NamedTuple{(:id, :age, :field, :GPA, :courses),Tuple{Int64,Int64,String,Float64,Array{String,1}}},typeof(render2file),String,Bool})
19+
Base.precompile(Tuple{typeof(addnode!),Node,String,Array{Float64,1},Type{AbsNormal}})
1020
Base.precompile(Tuple{typeof(addnode!),Node,String,Array{String,1},Type{AbsText}})
1121
Base.precompile(Tuple{typeof(addnode!),Node,String,Node,Type{AbsNormal}})
22+
Base.precompile(Tuple{typeof(aml_create),Expr,Array{Union{Expr, Symbol},1},Array{Any,1},Array{Union{Expr, Symbol, Type},1},Array{Union{Expr, Symbol},1},Array{Union{Missing, String},1},Array{Union{Missing, Function, Symbol},1},Array{Union{Missing, Type},1},String,Type{T} where T,Array{Union{Missing, Function, Symbol},0},Bool,Array{Union{Nothing, Expr},1},Array{Union{Nothing, Expr},1},Array{Union{Nothing, Expr},1},Expr})
23+
Base.precompile(Tuple{typeof(aml_create),Expr,Array{Union{Expr, Symbol},1},Array{Any,1},Array{Union{Expr, Symbol, Type},1},Array{Union{Expr, Symbol},1},Array{Union{Missing, String},1},Array{Union{Missing, Function, Symbol},1},Array{Union{Missing, Type},1},String,Type{T} where T,Array{Union{Missing, Function, Symbol},0},Bool,Array{Union{Nothing, Expr},1},Array{Union{Nothing, Expr},1},Array{Union{Nothing, Expr},1},Symbol})
24+
Base.precompile(Tuple{typeof(aml_parse),Expr})
1225
Base.precompile(Tuple{typeof(findcontent),Type{Array{Float64,1}},String,Node,Type{AbsNormal}})
1326
Base.precompile(Tuple{typeof(findcontent),Type{Array{Int64,1}},String,Node,Type{AbsNormal}})
1427
Base.precompile(Tuple{typeof(get),Node,String,Nothing})
28+
Base.precompile(Tuple{typeof(get_struct_xmlcreator),Expr,Array{Any,1},Array{Union{Expr, Symbol},1},Nothing,Expr,Array{Expr,1},Array{Expr,1},Nothing})
29+
Base.precompile(Tuple{typeof(multiString),Array{String,1}})
1530
Base.precompile(Tuple{typeof(updatecontent!),Array{Any,1},String,Node,Type{AbsNormal}})
31+
Base.precompile(Tuple{typeof(updatecontent!),Array{String,1},String,Node,Type{AbsText}})
1632
Base.precompile(Tuple{typeof(updatecontent!),Dict{String,String},String,Node,Type{AbsNormal}})
1733
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Use
2+
# @warnpcfail precompile(args...)
3+
# if you want to be warned when a precompile directive fails
4+
macro warnpcfail(ex::Expr)
5+
modl = __module__
6+
file = __source__.file === nothing ? "?" : String(__source__.file)
7+
line = __source__.line
8+
quote
9+
$(esc(ex)) || @warn """precompile directive
10+
$($(Expr(:quote, ex)))
11+
failed. Please report an issue in $($modl) (after checking for duplicates) or remove this directive.""" _file=$file _line=$line
12+
end
13+
end
14+
15+
16+
function _precompile_()
17+
ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
18+
Base.precompile(Tuple{Core.kwftype(typeof(render2file)),NamedTuple{(:id, :age, :field, :GPA, :courses), Tuple{Int64, Int64, String, Float64, Vector{String}}},typeof(render2file),String,Bool})
19+
Base.precompile(Tuple{typeof(aml_create),Expr,Vector{Union{Expr, Symbol}},Vector{Any},Vector{Union{Expr, Symbol, Type}},Vector{Union{Expr, Symbol}},Vector{Union{Missing, String}},Vector{Union{Missing, Function, Symbol}},Vector{Union{Missing, Type}},String,Type,Array{Union{Missing, Function, Symbol}, 0},Bool,Vector{Union{Nothing, Expr}},Vector{Union{Nothing, Expr}},Vector{Union{Nothing, Expr}},Expr})
20+
Base.precompile(Tuple{typeof(aml_create),Expr,Vector{Union{Expr, Symbol}},Vector{Any},Vector{Union{Expr, Symbol, Type}},Vector{Union{Expr, Symbol}},Vector{Union{Missing, String}},Vector{Union{Missing, Function, Symbol}},Vector{Union{Missing, Type}},String,Type,Array{Union{Missing, Function, Symbol}, 0},Bool,Vector{Union{Nothing, Expr}},Vector{Union{Nothing, Expr}},Vector{Union{Nothing, Expr}},Symbol})
21+
Base.precompile(Tuple{typeof(aml_parse),Expr})
22+
Base.precompile(Tuple{typeof(findcontent),Type{Vector{Float64}},String,Node,Type{AbsNormal}})
23+
Base.precompile(Tuple{typeof(findcontent),Type{Vector{Int64}},String,Node,Type{AbsNormal}})
24+
Base.precompile(Tuple{typeof(findfirsttext),Int64,Node})
25+
Base.precompile(Tuple{typeof(get),Node,String,Nothing})
26+
Base.precompile(Tuple{typeof(multiString),Vector{String}})
27+
Base.precompile(Tuple{typeof(updatecontent!),Dict{String, String},String,Node,Type{AbsNormal}})
28+
Base.precompile(Tuple{typeof(updatecontent!),Vector{Any},String,Node,Type{AbsNormal}})
29+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use
2+
# @warnpcfail precompile(args...)
3+
# if you want to be warned when a precompile directive fails
4+
macro warnpcfail(ex::Expr)
5+
modl = __module__
6+
file = __source__.file === nothing ? "?" : String(__source__.file)
7+
line = __source__.line
8+
quote
9+
$(esc(ex)) || @warn """precompile directive
10+
$($(Expr(:quote, ex)))
11+
failed. Please report an issue in $($modl) (after checking for duplicates) or remove this directive.""" _file=$file _line=$line
12+
end
13+
end
14+
15+
16+
function _precompile_()
17+
ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
18+
Base.precompile(Tuple{Core.kwftype(typeof(render2file)),NamedTuple{(:id, :age, :field, :GPA, :courses), Tuple{Int64, Int64, String, Float64, Vector{String}}},typeof(render2file),String,Bool})
19+
Base.precompile(Tuple{typeof(aml_create),Expr,Vector{Union{Expr, Symbol}},Vector{Any},Vector{Union{Expr, Symbol, Type}},Vector{Union{Expr, Symbol}},Vector{Union{Missing, String}},Vector{Union{Missing, Function, Symbol}},Vector{Union{Missing, Type}},String,Type,Array{Union{Missing, Function, Symbol}, 0},Bool,Vector{Union{Nothing, Expr}},Vector{Union{Nothing, Expr}},Vector{Union{Nothing, Expr}},Expr})
20+
Base.precompile(Tuple{typeof(aml_create),Expr,Vector{Union{Expr, Symbol}},Vector{Any},Vector{Union{Expr, Symbol, Type}},Vector{Union{Expr, Symbol}},Vector{Union{Missing, String}},Vector{Union{Missing, Function, Symbol}},Vector{Union{Missing, Type}},String,Type,Array{Union{Missing, Function, Symbol}, 0},Bool,Vector{Union{Nothing, Expr}},Vector{Union{Nothing, Expr}},Vector{Union{Nothing, Expr}},Symbol})
21+
Base.precompile(Tuple{typeof(aml_parse),Expr})
22+
Base.precompile(Tuple{typeof(findcontent),Type{Vector{Float64}},String,Node,Type{AbsNormal}})
23+
Base.precompile(Tuple{typeof(findcontent),Type{Vector{Int64}},String,Node,Type{AbsNormal}})
24+
Base.precompile(Tuple{typeof(multiString),Vector{String}})
25+
Base.precompile(Tuple{typeof(updatecontent!),Dict{String, String},String,Node,Type{AbsNormal}})
26+
Base.precompile(Tuple{typeof(updatecontent!),Vector{String},String,Node,Type{AbsNormal}})
27+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Use
2+
# @warnpcfail precompile(args...)
3+
# if you want to be warned when a precompile directive fails
4+
macro warnpcfail(ex::Expr)
5+
modl = __module__
6+
file = __source__.file === nothing ? "?" : String(__source__.file)
7+
line = __source__.line
8+
quote
9+
$(esc(ex)) || @warn """precompile directive
10+
$($(Expr(:quote, ex)))
11+
failed. Please report an issue in $($modl) (after checking for duplicates) or remove this directive.""" _file=$file _line=$line
12+
end
13+
end
14+
15+
16+
function _precompile_()
17+
ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
18+
Base.precompile(Tuple{Core.kwftype(typeof(render2file)),NamedTuple{(:id, :age, :field, :GPA, :courses), Tuple{Int64, Int64, String, Float64, Vector{String}}},typeof(render2file),String,Bool})
19+
Base.precompile(Tuple{typeof(addnode!),Node,String,Node,Type{AbsNormal}})
20+
Base.precompile(Tuple{typeof(addnode!),Node,String,Vector{String},Type{AbsText}})
21+
Base.precompile(Tuple{typeof(aml_create),Expr,Vector{Union{Expr, Symbol}},Vector{Any},Vector{Union{Expr, Symbol, Type}},Vector{Union{Expr, Symbol}},Vector{Union{Missing, String}},Vector{Union{Missing, Function, Symbol}},Vector{Union{Missing, Type}},String,Type,Array{Union{Missing, Function, Symbol}, 0},Bool,Vector{Union{Nothing, Expr}},Vector{Union{Nothing, Expr}},Vector{Union{Nothing, Expr}},Expr})
22+
Base.precompile(Tuple{typeof(aml_create),Expr,Vector{Union{Expr, Symbol}},Vector{Any},Vector{Union{Expr, Symbol, Type}},Vector{Union{Expr, Symbol}},Vector{Union{Missing, String}},Vector{Union{Missing, Function, Symbol}},Vector{Union{Missing, Type}},String,Type,Array{Union{Missing, Function, Symbol}, 0},Bool,Vector{Union{Nothing, Expr}},Vector{Union{Nothing, Expr}},Vector{Union{Nothing, Expr}},Symbol})
23+
Base.precompile(Tuple{typeof(aml_parse),Expr})
24+
Base.precompile(Tuple{typeof(findcontent),Type{Vector{Float64}},String,Node,Type{AbsNormal}})
25+
Base.precompile(Tuple{typeof(findcontent),Type{Vector{Int64}},String,Node,Type{AbsNormal}})
26+
Base.precompile(Tuple{typeof(multiString),Vector{String}})
27+
Base.precompile(Tuple{typeof(updatecontent!),Dict{String, String},String,Node,Type{AbsNormal}})
28+
Base.precompile(Tuple{typeof(updatecontent!),Vector{Any},String,Node,Type{AbsNormal}})
29+
Base.precompile(Tuple{typeof(updatecontent!),Vector{String},String,Node,Type{AbsText}})
30+
end

src/precompile_includer.jl

+99-22
Original file line numberDiff line numberDiff line change
@@ -8,93 +8,170 @@ ismultiversion = true
88
@static if !should_precompile
99
# nothing
1010
elseif !ismultios && !ismultiversion
11-
@static if (isfile("../deps/SnoopCompile/precompile/precompile_AcuteML.jl"))
11+
@static if isfile(
12+
joinpath(@__DIR__, "../deps/SnoopCompile/precompile/precompile_AcuteML.jl"),
13+
)
1214
include("../deps/SnoopCompile/precompile/precompile_AcuteML.jl")
1315
_precompile_()
1416
end
1517
else
1618
@static if Sys.islinux()
1719
@static if v"1.2.0-DEV" <= VERSION <= v"1.2.9"
18-
@static if (isfile("../deps/SnoopCompile/precompile/linux/1.2/precompile_AcuteML.jl"))
20+
@static if isfile(
21+
joinpath(
22+
@__DIR__,
23+
"../deps/SnoopCompile/precompile/linux/1.2/precompile_AcuteML.jl",
24+
),
25+
)
1926
include("../deps/SnoopCompile/precompile/linux/1.2/precompile_AcuteML.jl")
2027
_precompile_()
2128
end
2229
elseif v"1.3.0-DEV" <= VERSION <= v"1.3.9"
23-
@static if (isfile("../deps/SnoopCompile/precompile/linux/1.3/precompile_AcuteML.jl"))
30+
@static if isfile(
31+
joinpath(
32+
@__DIR__,
33+
"../deps/SnoopCompile/precompile/linux/1.3/precompile_AcuteML.jl",
34+
),
35+
)
2436
include("../deps/SnoopCompile/precompile/linux/1.3/precompile_AcuteML.jl")
2537
_precompile_()
2638
end
2739
elseif v"1.4.0-DEV" <= VERSION <= v"1.4.9"
28-
@static if (isfile("../deps/SnoopCompile/precompile/linux/1.4/precompile_AcuteML.jl"))
40+
@static if isfile(
41+
joinpath(
42+
@__DIR__,
43+
"../deps/SnoopCompile/precompile/linux/1.4/precompile_AcuteML.jl",
44+
),
45+
)
2946
include("../deps/SnoopCompile/precompile/linux/1.4/precompile_AcuteML.jl")
3047
_precompile_()
3148
end
3249
elseif v"1.5.0-DEV" <= VERSION <= v"1.5.9"
33-
@static if (isfile("../deps/SnoopCompile/precompile/linux/1.5/precompile_AcuteML.jl"))
50+
@static if isfile(
51+
joinpath(
52+
@__DIR__,
53+
"../deps/SnoopCompile/precompile/linux/1.5/precompile_AcuteML.jl",
54+
),
55+
)
3456
include("../deps/SnoopCompile/precompile/linux/1.5/precompile_AcuteML.jl")
3557
_precompile_()
3658
end
37-
elseif v"1.6.0-DEV" <= VERSION <= v"1.6.9"
38-
@static if (isfile("../deps/SnoopCompile/precompile/linux/1.6/precompile_AcuteML.jl"))
39-
include("../deps/SnoopCompile/precompile/linux/1.6/precompile_AcuteML.jl")
59+
elseif v"1.8.0-DEV" <= VERSION <= v"1.8.9"
60+
@static if isfile(
61+
joinpath(
62+
@__DIR__,
63+
"../deps/SnoopCompile/precompile/linux/1.8/precompile_AcuteML.jl",
64+
),
65+
)
66+
include("../deps/SnoopCompile/precompile/linux/1.8/precompile_AcuteML.jl")
4067
_precompile_()
4168
end
4269
else
4370
end
4471

4572
elseif Sys.iswindows()
4673
@static if v"1.2.0-DEV" <= VERSION <= v"1.2.9"
47-
@static if (isfile("../deps/SnoopCompile/precompile/windows/1.2/precompile_AcuteML.jl"))
74+
@static if isfile(
75+
joinpath(
76+
@__DIR__,
77+
"../deps/SnoopCompile/precompile/windows/1.2/precompile_AcuteML.jl",
78+
),
79+
)
4880
include("../deps/SnoopCompile/precompile/windows/1.2/precompile_AcuteML.jl")
4981
_precompile_()
5082
end
5183
elseif v"1.3.0-DEV" <= VERSION <= v"1.3.9"
52-
@static if (isfile("../deps/SnoopCompile/precompile/windows/1.3/precompile_AcuteML.jl"))
84+
@static if isfile(
85+
joinpath(
86+
@__DIR__,
87+
"../deps/SnoopCompile/precompile/windows/1.3/precompile_AcuteML.jl",
88+
),
89+
)
5390
include("../deps/SnoopCompile/precompile/windows/1.3/precompile_AcuteML.jl")
5491
_precompile_()
5592
end
5693
elseif v"1.4.0-DEV" <= VERSION <= v"1.4.9"
57-
@static if (isfile("../deps/SnoopCompile/precompile/windows/1.4/precompile_AcuteML.jl"))
94+
@static if isfile(
95+
joinpath(
96+
@__DIR__,
97+
"../deps/SnoopCompile/precompile/windows/1.4/precompile_AcuteML.jl",
98+
),
99+
)
58100
include("../deps/SnoopCompile/precompile/windows/1.4/precompile_AcuteML.jl")
59101
_precompile_()
60102
end
61103
elseif v"1.5.0-DEV" <= VERSION <= v"1.5.9"
62-
@static if (isfile("../deps/SnoopCompile/precompile/windows/1.5/precompile_AcuteML.jl"))
104+
@static if isfile(
105+
joinpath(
106+
@__DIR__,
107+
"../deps/SnoopCompile/precompile/windows/1.5/precompile_AcuteML.jl",
108+
),
109+
)
63110
include("../deps/SnoopCompile/precompile/windows/1.5/precompile_AcuteML.jl")
64111
_precompile_()
65112
end
66-
elseif v"1.6.0-DEV" <= VERSION <= v"1.6.9"
67-
@static if (isfile("../deps/SnoopCompile/precompile/windows/1.6/precompile_AcuteML.jl"))
68-
include("../deps/SnoopCompile/precompile/windows/1.6/precompile_AcuteML.jl")
113+
elseif v"1.8.0-DEV" <= VERSION <= v"1.8.9"
114+
@static if isfile(
115+
joinpath(
116+
@__DIR__,
117+
"../deps/SnoopCompile/precompile/windows/1.8/precompile_AcuteML.jl",
118+
),
119+
)
120+
include("../deps/SnoopCompile/precompile/windows/1.8/precompile_AcuteML.jl")
69121
_precompile_()
70122
end
71123
else
72124
end
73125

74126
elseif Sys.isapple()
75127
@static if v"1.2.0-DEV" <= VERSION <= v"1.2.9"
76-
@static if (isfile("../deps/SnoopCompile/precompile/apple/1.2/precompile_AcuteML.jl"))
128+
@static if isfile(
129+
joinpath(
130+
@__DIR__,
131+
"../deps/SnoopCompile/precompile/apple/1.2/precompile_AcuteML.jl",
132+
),
133+
)
77134
include("../deps/SnoopCompile/precompile/apple/1.2/precompile_AcuteML.jl")
78135
_precompile_()
79136
end
80137
elseif v"1.3.0-DEV" <= VERSION <= v"1.3.9"
81-
@static if (isfile("../deps/SnoopCompile/precompile/apple/1.3/precompile_AcuteML.jl"))
138+
@static if isfile(
139+
joinpath(
140+
@__DIR__,
141+
"../deps/SnoopCompile/precompile/apple/1.3/precompile_AcuteML.jl",
142+
),
143+
)
82144
include("../deps/SnoopCompile/precompile/apple/1.3/precompile_AcuteML.jl")
83145
_precompile_()
84146
end
85147
elseif v"1.4.0-DEV" <= VERSION <= v"1.4.9"
86-
@static if (isfile("../deps/SnoopCompile/precompile/apple/1.4/precompile_AcuteML.jl"))
148+
@static if isfile(
149+
joinpath(
150+
@__DIR__,
151+
"../deps/SnoopCompile/precompile/apple/1.4/precompile_AcuteML.jl",
152+
),
153+
)
87154
include("../deps/SnoopCompile/precompile/apple/1.4/precompile_AcuteML.jl")
88155
_precompile_()
89156
end
90157
elseif v"1.5.0-DEV" <= VERSION <= v"1.5.9"
91-
@static if (isfile("../deps/SnoopCompile/precompile/apple/1.5/precompile_AcuteML.jl"))
158+
@static if isfile(
159+
joinpath(
160+
@__DIR__,
161+
"../deps/SnoopCompile/precompile/apple/1.5/precompile_AcuteML.jl",
162+
),
163+
)
92164
include("../deps/SnoopCompile/precompile/apple/1.5/precompile_AcuteML.jl")
93165
_precompile_()
94166
end
95-
elseif v"1.6.0-DEV" <= VERSION <= v"1.6.9"
96-
@static if (isfile("../deps/SnoopCompile/precompile/apple/1.6/precompile_AcuteML.jl"))
97-
include("../deps/SnoopCompile/precompile/apple/1.6/precompile_AcuteML.jl")
167+
elseif v"1.8.0-DEV" <= VERSION <= v"1.8.9"
168+
@static if isfile(
169+
joinpath(
170+
@__DIR__,
171+
"../deps/SnoopCompile/precompile/apple/1.8/precompile_AcuteML.jl",
172+
),
173+
)
174+
include("../deps/SnoopCompile/precompile/apple/1.8/precompile_AcuteML.jl")
98175
_precompile_()
99176
end
100177
else

0 commit comments

Comments
 (0)