@@ -377,30 +377,11 @@ function generate_precompile_statements()
377
377
n_succeeded = 0
378
378
include_time = @elapsed for statement in statements
379
379
# println(statement)
380
- # XXX : skip some that are broken. these are caused by issue #39902
381
- occursin (" Tuple{Artifacts.var\" #@artifact_str\" , LineNumberNode, Module, Any, Any}" , statement) && continue
382
- occursin (" Tuple{Base.Cartesian.var\" #@ncall\" , LineNumberNode, Module, Int64, Any, Vararg{Any}}" , statement) && continue
383
- occursin (" Tuple{Base.Cartesian.var\" #@ncall\" , LineNumberNode, Module, Int32, Any, Vararg{Any}}" , statement) && continue
384
- occursin (" Tuple{Base.Cartesian.var\" #@nloops\" , LineNumberNode, Module, Any, Any, Any, Vararg{Any}}" , statement) && continue
385
- occursin (" Tuple{Core.var\" #@doc\" , LineNumberNode, Module, Vararg{Any}}" , statement) && continue
386
- # XXX : this is strange, as this isn't the correct representation of this
387
- occursin (" typeof(Core.IntrinsicFunction)" , statement) && continue
388
- # XXX : this is strange, as this method should not be getting compiled
389
- occursin (" , Core.Compiler.AbstractInterpreter, " , statement) && continue
390
380
try
391
381
ps = Meta. parse (statement)
392
382
isexpr (ps, :call ) || continue
393
383
popfirst! (ps. args) # precompile(...)
394
384
ps. head = :tuple
395
- l = ps. args[end ]
396
- if (isexpr (l, :tuple ) || isexpr (l, :curly )) && length (l. args) > 0 # Tuple{...} or (...)
397
- # XXX : precompile doesn't currently handle overloaded Vararg arguments very well.
398
- # Replacing N with a large number works around it.
399
- l = l. args[end ]
400
- if isexpr (l, :curly ) && length (l. args) == 2 && l. args[1 ] === :Vararg # Vararg{T}
401
- push! (l. args, 100 ) # form Vararg{T, 100} instead
402
- end
403
- end
404
385
# println(ps)
405
386
ps = Core. eval (PrecompileStagingArea, ps)
406
387
precompile (ps... )
0 commit comments