updates to support building on windows

pull/329/head
Darren Schroeder 2022-08-09 13:51:26 +07:00
parent 0c03187b96
commit 003cbb21e0
2 changed files with 8 additions and 8 deletions

@ -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
@ -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);
}
}

@ -1,4 +1,4 @@
[toolchain]
channel = "1.56"
channel = "1.57"
components = ["rustfmt"]
profile = "minimal"