File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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]
You can’t perform that action at this time.
0 commit comments