feat: realizeConst to set CoreM's maxHeartbeat (#11191)

This PR makes sure that inside a `realizeConst` the `maxHeartbeat`
option is effective.
This commit is contained in:
Joachim Breitner 2025-11-15 18:36:09 +01:00 committed by GitHub
parent 100006fdd0
commit e39894e62d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2657,7 +2657,10 @@ def realizeConst (forConst : Name) (constName : Name) (realize : MetaM Unit) :
where
-- similar to `wrapAsyncAsSnapshot` but not sufficiently so to share code
realizeAndReport (coreCtx : Core.Context) env opts := do
let coreCtx := { coreCtx with options := opts }
let coreCtx := { coreCtx with
options := opts
maxHeartbeats := Core.getMaxHeartbeats opts
}
let act :=
IO.FS.withIsolatedStreams (isolateStderr := Core.stderrAsMessages.get opts) (do
-- catch all exceptions