Skip to content

Commit

Permalink
updates to support building on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fdncred committed Aug 9, 2022
1 parent 0c03187 commit 003cbb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions build.rs
Expand Up @@ -22,13 +22,6 @@ impl TreeSitterParser {
}
}

let mut build = cc::Build::new();
build.include(&dir).warnings(false); // ignore unused parameter warnings
for file in c_files {
build.file(dir.join(file));
}
build.compile(self.name);

if !cpp_files.is_empty() {
let mut cpp_build = cc::Build::new();
cpp_build
Expand Down Expand Up @@ -58,6 +51,13 @@ impl TreeSitterParser {
}
cpp_build.compile(&format!("{}-cpp", self.name));
}

let mut build = cc::Build::new();
build.include(&dir).warnings(false); // ignore unused parameter warnings
for file in c_files {
build.file(dir.join(file));
}
build.compile(self.name);
}
}

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
@@ -1,4 +1,4 @@
[toolchain]
channel = "1.56"
channel = "1.57"
components = ["rustfmt"]
profile = "minimal"

0 comments on commit 003cbb2

Please sign in to comment.