Skip to content

Commit

Permalink
Enable build by msvc (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazatsuyu authored Jan 31, 2024
1 parent cf98de2 commit 9527ab8
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 @@ -14,7 +14,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 9527ab8

Please sign in to comment.