|
33 | 33 | JuliaSyntax.enable_in_core!() = nothing |
34 | 34 | init_active_project() = ACTIVE_PROJECT[] = nothing |
35 | 35 | set_active_project(projfile::Union{AbstractString,Nothing}) = ACTIVE_PROJECT[] = projfile |
| 36 | + init_depot_path() = nothing |
| 37 | + init_load_path() = nothing |
| 38 | + init_active_project() = nothing |
36 | 39 | disable_library_threading() = nothing |
37 | 40 | start_profile_listener() = nothing |
38 | 41 | @inline function invokelatest(f::F, args...; kwargs...) where F |
|
132 | 135 | mapreduce_empty(::typeof(abs), op::F, T) where {F} = abs(reduce_empty(op, T)) |
133 | 136 | mapreduce_empty(::typeof(abs2), op::F, T) where {F} = abs2(reduce_empty(op, T)) |
134 | 137 | end |
135 | | -@eval Base.Unicode begin |
136 | | - function utf8proc_map(str::Union{String,SubString{String}}, options::Integer, chartransform::F = identity) where F |
137 | | - nwords = utf8proc_decompose(str, options, C_NULL, 0, chartransform) |
138 | | - buffer = Base.StringVector(nwords*4) |
139 | | - nwords = utf8proc_decompose(str, options, buffer, nwords, chartransform) |
140 | | - nbytes = ccall(:utf8proc_reencode, Int, (Ptr{UInt8}, Int, Cint), buffer, nwords, options) |
141 | | - nbytes < 0 && utf8proc_error(nbytes) |
142 | | - return String(resize!(buffer, nbytes)) |
143 | | - end |
| 138 | +@eval Base.Sys begin |
| 139 | + __init_build() = nothing |
144 | 140 | end |
145 | 141 | @eval Base.GMP begin |
146 | 142 | function __init__() |
@@ -202,6 +198,7 @@ let mod = Base.include(Base.__toplevel__, inputfile) |
202 | 198 | if !isa(mod, Module) |
203 | 199 | mod = Main |
204 | 200 | end |
| 201 | + Core.@latestworld |
205 | 202 | if output_type == "--output-exe" && isdefined(mod, :main) && !add_ccallables |
206 | 203 | entrypoint(mod.main, ()) |
207 | 204 | end |
|
0 commit comments