Skip to content

Commit

Permalink
tweak for upcoming Core.Compiler change (#671)
Browse files Browse the repository at this point in the history
JuliaLang/julia#43800 will define new module `EscapeAnalysis`
inside `Core.Compiler`, and it requires this minor special handling.
  • Loading branch information
aviatesk authored Feb 18, 2022
1 parent 5925b99 commit b11e1a5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,15 @@ function track_subdir_from_git!(pkgdata::PkgData, subdir::AbstractString; commit
rethrow(err)
end
fmod = get(juliaf2m, fullpath, Core.Compiler) # Core.Compiler is not cached
fmod === Core.Compiler && endswith(fullpath, "compiler.jl") && continue # defines the module, skip
if fmod === Core.Compiler
endswith(fullpath, "compiler.jl") && continue # defines the module, skip
@static if isdefined(Core.Compiler, :EscapeAnalysis)
# after https://github.com/JuliaLang/julia/pull/43800
if contains(fullpath, "compiler/ssair/EscapeAnalysis")
fmod = Core.Compiler.EscapeAnalysis
end
end
end
if src != read(fullpath, String)
push!(modified_files, (pkgdata, rpath))
end
Expand Down

0 comments on commit b11e1a5

Please sign in to comment.