Skip to content

Commit 13f42a7

Browse files
committed
tweak for upcoming Core.Compiler change
JuliaLang/julia#43800 will define new module `EscapeAnalysis` inside `Core.Compiler`, and it requires this minor special handling.
1 parent 5925b99 commit 13f42a7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/recipes.jl

+9-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,15 @@ function track_subdir_from_git!(pkgdata::PkgData, subdir::AbstractString; commit
149149
rethrow(err)
150150
end
151151
fmod = get(juliaf2m, fullpath, Core.Compiler) # Core.Compiler is not cached
152-
fmod === Core.Compiler && endswith(fullpath, "compiler.jl") && continue # defines the module, skip
152+
if fmod === Core.Compiler
153+
endswith(fullpath, "compiler.jl") && continue # defines the module, skip
154+
@static if isdefined(Core.Compiler, :EscapeAnalysis)
155+
# after https://github.com/JuliaLang/julia/pull/43800
156+
if contains(fullpath, "compiler/ssair/EscapeAnalysis")
157+
fmod = Core.Compiler.EscapeAnalysis
158+
end
159+
end
160+
end
153161
if src != read(fullpath, String)
154162
push!(modified_files, (pkgdata, rpath))
155163
end

0 commit comments

Comments
 (0)