Skip to content

Commit 1e6b9e5

Browse files
authored
Merge pull request #598 from os-checker/fix/dll-path-on-windows
fix(charon CLI): set RUSTUP_WINDOWS_PATH_ADD_BIN=1 on Windows to add rust driver dll to PATH
2 parents f3e61e9 + bb7ae89 commit 1e6b9e5

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)