Skip to content

Commit 410ac32

Browse files
committed
Expand precompiles
1 parent 4bc7ebc commit 410ac32

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

src/precompile.jl

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
function _precompile_()
22
ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
3-
precompile(normal_mesh, (Tesselation{3,Float32,Cylinder{3,Float32},1},))
4-
precompile(normal_mesh, (Tesselation{3,Float32,HyperSphere{3,Float32},1},))
5-
precompile(normal_mesh, (HyperSphere{3,Float32},))
3+
@assert precompile(HyperRectangle{2,Float32}, (Int, Int, Int, Int))
4+
@assert precompile(==, (HyperRectangle{2,Float32}, HyperRectangle{2,Float32}))
5+
@assert precompile(normal_mesh, (Tesselation{3,Float32,Cylinder{3,Float32},1},))
6+
@assert precompile(normal_mesh, (Tesselation{3,Float32,HyperSphere{3,Float32},1},))
7+
@assert precompile(normal_mesh, (HyperSphere{3,Float32},))
8+
9+
if Base.VERSION >= v"1.6.0-DEV.1083"
10+
@assert precompile(triangle_mesh, (Polygon{2, Float32, Point2f0, LineString{2, Float32, Point2f0,
11+
Base.ReinterpretArray{Line{2, Float32}, 1, Tuple{Point2f0, Point2f0}, TupleView{Tuple{Point2f0, Point2f0}, 2, 1, Vector{Point2f0}}, false}},
12+
Vector{LineString{2, Float32, Point2f0, Base.ReinterpretArray{Line{2, Float32}, 1, Tuple{Point2f0, Point2f0}, TupleView{Tuple{Point2f0, Point2f0}, 2, 1, Vector{Point2f0}}, false}}}},))
13+
else
14+
@assert precompile(triangle_mesh, (Polygon{2, Float32, Point2f0, LineString{2, Float32, Point2f0,
15+
Base.ReinterpretArray{Line{2, Float32}, 1, Tuple{Point2f0, Point2f0}, TupleView{Tuple{Point2f0, Point2f0}, 2, 1, Vector{Point2f0}}}},
16+
Vector{LineString{2, Float32, Point2f0, Base.ReinterpretArray{Line{2, Float32}, 1, Tuple{Point2f0, Point2f0}, TupleView{Tuple{Point2f0, Point2f0}, 2, 1, Vector{Point2f0}}}}}},))
17+
end
18+
19+
@assert precompile(split_intersections, (Vector{Point2f0},))
620
end

0 commit comments

Comments
 (0)