@@ -529,9 +529,11 @@ function flatten(data::Vector, lidict::LineInfoDict)
529
529
end
530
530
531
531
const SRC_DIR = normpath (joinpath (Sys. BUILD_ROOT_PATH, " src" ))
532
+ const COMPILER_DIR = " ././../usr/share/julia/Compiler/"
532
533
533
534
# Take a file-system path and try to form a concise representation of it
534
535
# based on the package ecosystem
536
+ # filenamecache is a dict of spath -> (fullpath or "" if !isfile, modulename, shortpath)
535
537
function short_path (spath:: Symbol , filenamecache:: Dict{Symbol, Tuple{String,String,String}} )
536
538
return get! (filenamecache, spath) do
537
539
path = Base. fixup_stdlib_path (string (spath))
@@ -544,6 +546,10 @@ function short_path(spath::Symbol, filenamecache::Dict{Symbol, Tuple{String,Stri
544
546
elseif startswith (path_norm, lib_dir)
545
547
remainder = only (split (path_norm, lib_dir, keepempty= false ))
546
548
return (isfile (path_norm) ? path_norm : " " ), " @julialib" , remainder
549
+ elseif startswith (path, COMPILER_DIR)
550
+ remainder = only (split (path, COMPILER_DIR, keepempty= false ))
551
+ possible_compiler_path = normpath (joinpath (Sys. BINDIR, Base. DATAROOTDIR, " julia" , " Compiler" , remainder))
552
+ return (isfile (possible_compiler_path) ? possible_compiler_path : " " ), " @Compiler" , remainder
547
553
elseif isabspath (path)
548
554
if ispath (path)
549
555
# try to replace the file-system prefix with a short "@Module" one,
0 commit comments