Skip to content

Commit

Permalink
Enable build by msvc (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazatsuyu authored Feb 5, 2024
1 parent dc8f5de commit 7c01af8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@
],
"cflags_c": [
"-std=c99",
]
],
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalOptions": [
'-utf-8'
],
},
}
}
]
}
3 changes: 2 additions & 1 deletion bindings/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ fn main() {
c_config
.flag_if_supported("-Wno-unused-parameter")
.flag_if_supported("-Wno-unused-but-set-variable")
.flag_if_supported("-Wno-trigraphs");
.flag_if_supported("-Wno-trigraphs")
.flag_if_supported("-utf-8");
let parser_path = src_dir.join("parser.c");
c_config.file(&parser_path);

Expand Down

0 comments on commit 7c01af8

Please sign in to comment.