Skip to content

Commit aed7bc0

Browse files
committed
adapt Lake
1 parent a72a299 commit aed7bc0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/Lean/Environment.lean

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,10 +1923,12 @@ def ModuleArtifacts.oleanParts (arts : ModuleArtifacts) : Array System.FilePath
19231923
-- Producer (e.g., Lake) should limit parts to the proper import level.
19241924
if let some mFile := arts.olean? then
19251925
fnames := fnames.push mFile
1926-
if let some sFile := arts.oleanServer? then
1927-
fnames := fnames.push sFile
1928-
if let some pFile := arts.oleanPrivate? then
1929-
fnames := fnames.push pFile
1926+
if let some iFile := arts.oleanIR? then
1927+
fnames := fnames.push iFile
1928+
if let some sFile := arts.oleanServer? then
1929+
fnames := fnames.push sFile
1930+
if let some pFile := arts.oleanPrivate? then
1931+
fnames := fnames.push pFile
19301932
return fnames
19311933

19321934
private def findOLeanParts (mod : Name) : IO (Array System.FilePath) := do

src/Lean/Setup.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ structure ModuleHeader where
4242
structure ModuleArtifacts where
4343
lean? : Option System.FilePath := none
4444
olean? : Option System.FilePath := none
45+
oleanIR? : Option System.FilePath := none
4546
oleanServer? : Option System.FilePath := none
4647
oleanPrivate? : Option System.FilePath := none
4748
ilean? : Option System.FilePath := none

0 commit comments

Comments
 (0)