Merge pull request #329 from fdncred/fix_windows_build

updates to support building on windows
pull/341/head
Wilfred Hughes 2022-08-10 22:43:05 +07:00 committed by GitHub
commit e1672427d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"