Fix non-msvc grammar compile on Windows (#3190)

This commit is contained in:
bootra 2022-07-25 20:33:53 -04:00 committed by GitHub
parent 73a308c665
commit b7fa9ba601
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -319,7 +319,7 @@ fn build_tree_sitter_library(src_path: &Path, grammar: GrammarConfiguration) ->
command.env(key, value);
}
if cfg!(windows) {
if cfg!(all(windows, target_env = "msvc")) {
command
.args(&["/nologo", "/LD", "/I"])
.arg(header_path)