Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't take build lock for coq top --no-build #10547

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions bin/coq/coqtop.ml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let man =
let info = Cmd.info "top" ~doc ~man

let term =
let+ builder = Common.Builder.term
let+ default_builder = Common.Builder.term
and+ context =
let doc = "Run the Coq toplevel in this build context." in
Common.context_arg ~doc
Expand All @@ -34,7 +34,12 @@ let term =
& flag
& info [ "no-build" ] ~doc:"Don't rebuild dependencies before executing.")
in
let common, config = Common.init builder in
let common, config =
let builder =
if no_rebuild then Common.Builder.forbid_builds default_builder else default_builder
in
Common.init builder
in
let coq_file_arg = Common.prefix_target common coq_file_arg |> Path.Local.of_string in
let coqtop, argv, env =
Scheduler.go ~common ~config
Expand Down
2 changes: 2 additions & 0 deletions doc/changes/10547.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Don't try to take build lock when running `coq top --no-build` (#10547,
fixes #7671, @lzy0505)
Loading