Skip to content

Commit bb7ae89

Browse files
committed
fix(charon CLI): set RUSTUP_WINDOWS_PATH_ADD_BIN=1 on Windows
to add rust driver dll to PATH close AeneasVerif#588 cc rust-lang/rustup#3825 cc rust-lang/rustup#4246 cc rust-lang/rustup#4196
1 parent f3e61e9 commit bb7ae89

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

charon/src/bin/charon/main.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,15 @@ impl Toolchain {
9393
cmd.arg("run");
9494
cmd.arg(&self.channel);
9595
cmd.arg(program);
96+
97+
// Add rust driver dll to `PATH` in rustup.
98+
// cc
99+
// * https://github.com/AeneasVerif/charon/issues/588
100+
// * https://github.com/rust-lang/rustup/issues/3825
101+
if cfg!(windows) {
102+
cmd.env("RUSTUP_WINDOWS_PATH_ADD_BIN", "1");
103+
}
104+
96105
cmd
97106
}
98107
}

0 commit comments

Comments
 (0)