@@ -23,7 +23,7 @@ include(strcat(BUILDROOT, "version_git.jl")) # include($BUILDROOT/base/version_g
23
23
# a slightly more verbose fashion than usual, because we're running so early.
24
24
let os = ccall (:jl_get_UNAME , Any, ())
25
25
if os === :Darwin || os === :Apple
26
- if Base . DARWIN_FRAMEWORK
26
+ if DARWIN_FRAMEWORK
27
27
push! (DL_LOAD_PATH, " @loader_path/Frameworks" )
28
28
end
29
29
push! (DL_LOAD_PATH, " @loader_path" )
@@ -306,8 +306,8 @@ a_method_to_overwrite_in_test() = inferencebarrier(1)
306
306
(this:: IncludeInto )(mapexpr:: Function , fname:: AbstractString ) = include (mapexpr, this. m, fname)
307
307
308
308
# Compatibility with when Compiler was in Core
309
- @eval Core const Compiler = Main . Base. Compiler
310
- @eval Compiler const fl_parse = Core . Main . Base. fl_parse
309
+ @eval Core const Compiler = $ Base. Compiler
310
+ @eval Compiler const fl_parse = $ Base. fl_parse
311
311
312
312
# External libraries vendored into Base
313
313
Core. println (" JuliaSyntax/src/JuliaSyntax.jl" )
@@ -323,13 +323,13 @@ if is_primary_base_module
323
323
# Profiling helper
324
324
# triggers printing the report and (optionally) saving a heap snapshot after a SIGINFO/SIGUSR1 profile request
325
325
# Needs to be in Base because Profile is no longer loaded on boot
326
- function profile_printing_listener (cond:: Base. AsyncCondition )
326
+ function profile_printing_listener (cond:: AsyncCondition )
327
327
profile = nothing
328
328
try
329
329
while _trywait (cond)
330
330
profile = @something (profile, require_stdlib (PkgId (UUID (" 9abbd945-dff8-562f-b5e8-e1ebf5ef1b79" ), " Profile" ))):: Module
331
331
invokelatest (profile. peek_report[])
332
- if Base . get_bool_env (" JULIA_PROFILE_PEEK_HEAP_SNAPSHOT" , false ) === true
332
+ if get_bool_env (" JULIA_PROFILE_PEEK_HEAP_SNAPSHOT" , false ) === true
333
333
println (stderr , " Saving heap snapshot..." )
334
334
fname = invokelatest (profile. take_heap_snapshot)
335
335
println (stderr , " Heap snapshot saved to `$(fname) `" )
@@ -344,8 +344,8 @@ function profile_printing_listener(cond::Base.AsyncCondition)
344
344
end
345
345
346
346
function start_profile_listener ()
347
- cond = Base . AsyncCondition ()
348
- Base . uv_unref (cond. handle)
347
+ cond = AsyncCondition ()
348
+ uv_unref (cond. handle)
349
349
t = errormonitor (Threads. @spawn (profile_printing_listener (cond)))
350
350
atexit () do
351
351
# destroy this callback when exiting
405
405
const _compiler_require_dependencies = Any[]
406
406
@Core . latestworld
407
407
for i = 1 : length (_included_files)
408
- isassigned (_included_files, i) || continue
409
408
(mod, file) = _included_files[i]
410
409
if mod === Compiler || parentmodule (mod) === Compiler || endswith (file, " /Compiler.jl" )
411
410
_include_dependency! (_compiler_require_dependencies, true , mod, file, true , false )
421
420
@assert length (_compiler_require_dependencies) >= 15
422
421
423
422
end
424
-
425
- # Ensure this file is also tracked
426
- @assert ! isassigned (_included_files, 1 )
427
- _included_files[1 ] = (parentmodule (Base), abspath (@__FILE__ ))
0 commit comments