Skip to content

Commit

Permalink
Build dylint driver through rustup to fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
ascjones committed Aug 12, 2022
1 parent a438350 commit f4752f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 4 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,17 @@ fn build_and_zip_dylint_driver(
out_dir: PathBuf,
dylint_driver_dst_file: PathBuf,
) -> Result<()> {
let mut cmd = Command::new("cargo");
let mut cmd = Command::new("rustup");

let manifest_arg = format!(
"--manifest-path={}",
ink_dylint_driver_dir.join("Cargo.toml").display()
);
let target_dir = format!("--target-dir={}", out_dir.display());
cmd.args(vec![
"run",
"nightly-2022-06-30",
"cargo",
"build",
"--release",
"--locked",
Expand Down
6 changes: 0 additions & 6 deletions ink_linting/rust-toolchain.toml

This file was deleted.

0 comments on commit f4752f0

Please sign in to comment.