Skip to content

Commit 4deb40d

Browse files
authored
fixes for Compiler stdlib (#913)
1 parent 92cb6b8 commit 4deb40d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/recipes.jl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,19 @@ function track_subdir_from_git!(pkgdata::PkgData, subdir::AbstractString; commit
155155
end
156156
fmod = get(juliaf2m, fullpath, Core.Compiler) # Core.Compiler is not cached
157157
if fmod === Core.Compiler
158-
endswith(fullpath, "compiler.jl") && continue # defines the module, skip
158+
endswith(fullpath, "compiler.jl") && continue # defines the module (v1.11-), skip
159+
endswith(fullpath, "/Compiler/src/Compiler.jl") && continue # defines the module (v1.12+), skip
159160
@static if isdefined(Core.Compiler, :EscapeAnalysis)
160161
# after https://github.com/JuliaLang/julia/pull/43800
161-
if contains(fullpath, "compiler/ssair/EscapeAnalysis")
162+
if endswith(fullpath, "/compiler/ssair/EscapeAnalysis.jl") || contains(fullpath, "/Compiler/src/ssair/EscapeAnalysis.jl")
162163
fmod = Core.Compiler.EscapeAnalysis
163164
end
164165
end
166+
@static if isdefined(Core.Compiler, :TrimVerifier)
167+
if endswith(fullpath, "/Compiler/src/verifytrim.jl")
168+
fmod = Core.Compiler.TrimVerifier
169+
end
170+
end
165171
end
166172
if src != read(fullpath, String)
167173
push!(modified_files, (pkgdata, rpath))

0 commit comments

Comments
 (0)