Skip to content

Commit

Permalink
bugfix: fix 'vargo build --no-solver-version-check', fixes #1313
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhance committed Oct 22, 2024
1 parent 8a20b87 commit de60bcd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/tools/get-z3.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash -eu

z3_version="4.12.5"
z3_version="4.13.0"

if [ `uname` == "Darwin" ]; then
if [[ $(uname -m) == 'arm64' ]]; then
Expand Down
7 changes: 7 additions & 0 deletions source/vstd_build/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ fn main() {
let mut verbose = false;
let mut trace = false;
let mut log_all = false;
let mut no_solver_version_check = false;
for arg in args {
if arg == "--release" {
release = true;
Expand All @@ -47,6 +48,8 @@ fn main() {
trace = true;
} else if arg == "--log-all" {
log_all = true;
} else if arg == "--no-solver-version-check" {
no_solver_version_check = true;
} else {
panic!("unexpected argument: {:}", arg)
}
Expand Down Expand Up @@ -110,6 +113,10 @@ fn main() {
if log_all {
child_args.push("--log-all".to_string());
}
if no_solver_version_check {
child_args.push("-V".to_string());
child_args.push("no-solver-version-check".to_string());
}
if release {
child_args.push("-C".to_string());
child_args.push("opt-level=3".to_string());
Expand Down
3 changes: 3 additions & 0 deletions tools/vargo/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,9 @@ set -x
if verbose {
vstd_build = vstd_build.arg("--verbose");
}
if no_solver_version_check {
vstd_build = vstd_build.arg("--no-solver-version-check");
}
log_command(&vstd_build, verbose);
vstd_build
.status()
Expand Down

0 comments on commit de60bcd

Please sign in to comment.