Skip to content

feat(docs): fix Windows bundled-z3 build command in CONTRIBUTING.md - #3141

Merged
drew merged 3 commits into
mainfrom
docs/fix-3062-bundled-z3-cli-command
Sep 3, 2026
Merged

feat(docs): fix Windows bundled-z3 build command in CONTRIBUTING.md#3141
drew merged 3 commits into
mainfrom
docs/fix-3062-bundled-z3-cli-command

Conversation

@pkhodade-NV

@pkhodade-NV pkhodade-NV commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

The Windows MSVC example built openshell-cli with --features bundled-z3, but openshell-cli has no Z3 dependency and does not declare that feature. Point the example at openshell-prover instead, clarify which crates link Z3, and note the CMake requirement for building Z3 from source.

Fixes #3062

Summary

Windows MSVC build instructions in CONTRIBUTING.md referenced openshell-cli --features bundled-z3, but openshell-cli has no Z3 dependency and does not declare that feature, so the documented command fails.

Related Issue

Fixes #3062

Changes

  • Point the Windows MSVC bundled-z3 example at openshell-prover (the crate that actually declares the feature) instead of openshell-cli.
  • Clarify in the Z3 installation section that openshell-prover links Z3 directly, openshell-server depends on the prover, and the openshell-gateway binary crate depends on openshell-server in turn, both forwarding bundled-z3 down to openshell-prover/bundled-z3; openshell-cli has no Z3 dependency.
  • Note the CMake 3.16+ requirement for building Z3 from source via the bundled-z3 feature.
  • Add a separate Windows full build section using the windows:build:x64 mise task, which produces openshell-gateway.exe and openshell.exe, keeping the existing prover-only cargo build example under Prerequisites for consistency with macOS/Linux docs.

Testing

Documentation-only change; verified the corrected cargo command references a package (openshell-prover) that declares the bundled-z3 feature in its Cargo.toml, and confirmed the CMake 3.16+ minimum against the locked Z3 4.16.0 CMakeLists.txt.

  • mise run pre-commit not applicable (docs-only Markdown change)
  • Unit tests added/updated (not applicable)
  • E2E tests added/updated (not applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (not applicable)

The Windows MSVC example built openshell-cli with --features bundled-z3,
but openshell-cli has no Z3 dependency and does not declare that
feature. Point the example at openshell-prover instead, clarify which
crates link Z3, and note the CMake 4.4.3+ requirement for building Z3
from source.

Fixes #3062

Signed-off-by: pkhodade-NV <pkhodade@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

Fix the CMake minimum version (3.16, matching the locked z3-src/Z3
4.16.0 CMakeLists.txt, not 4.4.3). Make the Z3 dependency wording more
explicit: openshell-prover links Z3 directly, openshell-server depends
on the prover, and the openshell-gateway binary crate depends on
openshell-server in turn, both forwarding bundled-z3 down to
openshell-prover/bundled-z3; openshell-cli has no Z3 dependency. Add a
separate Windows full build section using the windows:build:x64 mise
task, which produces openshell-gateway.exe and openshell.exe, keeping
the existing prover-only cargo build example under Prerequisites for
consistency with macOS/Linux.

Signed-off-by: pkhodade-NV <pkhodade@nvidia.com>
openshell-prover has no bindgen dependency (z3-sys 0.11.0 only depends
on pkg-config and z3-src, which only depends on cmake), so building
just that crate does not require libclang. Move the LIBCLANG_PATH
requirement to the Windows full build section, where it is actually
needed because that build also compiles bindgen-using crates such as
the MXC driver.

Signed-off-by: pkhodade-NV <pkhodade@nvidia.com>
@pkhodade-NV
pkhodade-NV marked this pull request as ready for review September 3, 2026 11:46
@pkhodade-NV pkhodade-NV changed the title docs: fix Windows bundled-z3 build command in CONTRIBUTING.md feat(docs): fix Windows bundled-z3 build command in CONTRIBUTING.md Sep 3, 2026
@drew
drew added this pull request to the merge queue Sep 3, 2026
Merged via the queue into main with commit 5c0187a Sep 3, 2026
57 checks passed
@drew
drew deleted the docs/fix-3062-bundled-z3-cli-command branch September 3, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: Windows MSVC build command in CONTRIBUTING.md fails; openshell-cli has no bundled-z3 feature

2 participants