Skip to content

Commit e3043fa

Browse files
committed
bootstrapping
1 parent 7df9596 commit e3043fa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Lean/Compiler/InitAttr.lean

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ unsafe def registerInitAttrUnsafe (attrName : Name) (runAfterImport : Bool) (ref
6666
-- Save `meta initialize` in .olean; `initialize`s of any kind will be stored in .ir by
6767
-- `exportIREntries` analogously to `Lean.IR.declMapExt` so we can run them when meta-imported,
6868
-- even without the .olean file.
69-
filterExport := fun env declName _ => runAfterImport && isMeta env declName
69+
filterExport := fun env declName _ =>
70+
-- TODO: The interpreter currently depends on `[builtin_init]` to be exported for
71+
-- `prefer_native` handling but this is incorrect with private imports anyway and should be
72+
-- replaced by consulting a builtin list.
73+
!runAfterImport || isMeta env declName
7074
}
7175

7276
@[implemented_by registerInitAttrUnsafe]

0 commit comments

Comments
 (0)