Merge pull request #344 from igrep/fix-342

Fix: Can't build on Windows in a locale whose default encoding is not UTF-8
add_libdifftastic
Wilfred Hughes 2022-08-24 21:10:28 +07:00 committed by GitHub
commit b5847506dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

@ -53,6 +53,9 @@ impl TreeSitterParser {
}
let mut build = cc::Build::new();
if cfg!(windows) {
build.flag("/utf-8");
}
build.include(&dir).warnings(false); // ignore unused parameter warnings
for file in c_files {
build.file(dir.join(file));