aboutsummaryrefslogtreecommitdiff
path: root/stm
diff options
context:
space:
mode:
authorMaxime Dénès2017-03-30 16:39:15 +0200
committerMaxime Dénès2017-03-30 16:39:15 +0200
commitff89e6cd0607fe444dc9d5c13f4828dba7d8eaca (patch)
tree95f4010ea6527397526113058a2c0e25ad68efcc /stm
parentbedbdbc3daf27f80252ac2c7a968b1cc2730ad83 (diff)
parent12f6a1adf78d565aff9b27d742ffd45aad3b8427 (diff)
Merge branch 'v8.6' into trunk
Diffstat (limited to 'stm')
-rw-r--r--stm/stm.ml11
1 files changed, 7 insertions, 4 deletions
diff --git a/stm/stm.ml b/stm/stm.ml
index b592aab0da..b0ad3f8790 100644
--- a/stm/stm.ml
+++ b/stm/stm.ml
@@ -2232,10 +2232,13 @@ let known_state ?(redefine_qed=false) ~cache id =
if eff then update_global_env ()
), (if eff then `Yes else cache), true
| `Cmd { cast = x; ceff = eff } -> (fun () ->
- resilient_command reach view.next;
- stm_vernac_interp id x;
- if eff then update_global_env ()
- ), (if eff then `Yes else cache), true
+ (match !Flags.async_proofs_mode with
+ | Flags.APon | Flags.APonLazy ->
+ resilient_command reach view.next
+ | Flags.APoff -> reach view.next);
+ stm_vernac_interp id x;
+ if eff then update_global_env ()
+ ), (if eff then `Yes else cache), true
| `Fork ((x,_,_,_), None) -> (fun () ->
resilient_command reach view.next;
stm_vernac_interp id x;