Skip to content

Commit 203d660

Browse files
committed
fix(ci): pass gateway-level Z3 features to the Windows Cedar check
`cargo check -p openshell-gateway` accepts features of the gateway's direct dependencies only, so openshell-prover/prebuilt-z3 failed the check. openshell-server/prebuilt-z3 enables the prover's. Signed-off-by: Johnny Greco <[email protected]>
1 parent 12f73d0 commit 203d660

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎tasks/scripts/windows-msvc.ps1‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,10 +532,13 @@ function Invoke-Lint([string] $RustTarget) {
532532

533533
function Invoke-CedarChecks([string] $RustTarget) {
534534
Assert-GatewayExcludesCedarCrates $RustTarget
535+
# `-p openshell-gateway` takes features of its direct dependencies only;
536+
# openshell-server's prebuilt-z3 enables the prover's.
537+
$gatewayZ3Features = if ($Z3ServerFeatures) { "--features openshell-server/prebuilt-z3" } else { "" }
535538
# Release Dev enables Cedar; check it still compiles with the MXC driver.
536539
Invoke-VsCargo `
537540
-RustTarget $RustTarget `
538-
-CargoArgs "cargo check -p openshell-gateway --target $RustTarget --features compute-driver-mxc,cedar $Z3ServerFeatures" `
541+
-CargoArgs "cargo check -p openshell-gateway --target $RustTarget --features compute-driver-mxc,cedar $gatewayZ3Features" `
539542
-LogName "build-$RustTarget-check-cedar.log"
540543
}
541544

0 commit comments

Comments
 (0)